body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}
h1 {
    text-align: center;
    margin-top: 30px;
    color: #222;
}
.info-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 12px 20px;
    margin: 15px auto;
    max-width: 600px;
    text-align: center;
}
.info-message p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}
.info-message a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.info-message a:hover {
    text-decoration: underline;
}
.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
#search {
    width: 350px;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.tab {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px 5px 0 0;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}
.tab.active {
    background: #007bff;
    color: #fff;
    border-bottom: 2px solid #007bff;
}
#tab-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px; /* reduce gap between cards */
    min-height: 200px;
}
.card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    width: 130px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.12s;
    box-sizing: border-box;
}
.card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 6px;
    background: #eee;
    display: block;
}
.card .title {
    font-size: 11px;
    font-weight: normal;
    margin: 2px 0;
    text-align: center;
    line-height: 1.2;
}
.card .subtitle {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    margin: 2px 0 0 0;
    text-align: center;
}
.card .count {
    font-size: 8px;
    color: #888;
    margin-top: 4px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}
.pagination button {
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-weight: bold;
}
.pagination button:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}
#page-info {
    font-size: 15px;
    color: #333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}
.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-close:hover {
    color: #000;
}
.modal h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* Formulário */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}
.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.hint {
    font-size: 12px;
    color: #888;
    font-weight: normal;
}
.form-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}
.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.btn-submit {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover {
    background: #0056b3;
}
.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}
