:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #ecf0f1;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --text-color: #2c3e50;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 80px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    height: 2rem;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.header-stats {
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,123,255,0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.dashboard-header h2,
.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #95a5a6;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.status-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), var(--warning-color), var(--danger-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.status-card:hover::before {
    opacity: 1;
}

.status-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon .icon {
    width: 2rem;
    height: 2rem;
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-count {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.status-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.status-card.valid .status-count {
    color: var(--success-color);
}

.status-card.warning .status-count {
    color: var(--warning-color);
}

.status-card.expired .status-count {
    color: var(--danger-color);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.filters select,
.filters input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.certificate-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.certificate-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-left: 4px solid var(--success-color);
}

.certificate-header.warning {
    border-left-color: var(--warning-color);
}

.certificate-header.expired {
    border-left-color: var(--danger-color);
}

.certificate-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.certificate-client {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.certificate-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.certificate-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.status-badge.valid {
    background-color: var(--success-color);
    color: white;
}

.status-badge.warning {
    background-color: var(--warning-color);
    color: white;
}

.status-badge.expired {
    background-color: var(--danger-color);
    color: white;
}

.certificate-dates {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.certificate-body {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.certificate-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    font-size: 0.9rem;
}

.detail-label {
    font-weight: 500;
    color: var(--primary-color);
}

.detail-value {
    color: #7f8c8d;
}

.certificate-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    min-width: auto;
    flex-shrink: 0;
}

.clients-list,
.alerts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .clients-list,
    .alerts-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.25rem;
    }
}

.client-card,
.alert-card {
    background: white;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.client-card {
    animation: cardSlideIn 0.6s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), var(--warning-color), var(--danger-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-card:hover::before {
    opacity: 1;
}

/* Nome da empresa - Segunda linha */
.client-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 0;
    padding: 0 1rem;
    line-height: 1.3;
}

/* CNPJ da empresa - Terceira linha */
.client-document {
    font-size: 0.85rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #e9ecef;
    margin: 0 1rem 0.5rem 1rem;
}

/* Contadores - Primeira linha alinhados à direita */
.client-stats {
    display: flex;
    gap: 0.4rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0.5rem 1rem 0.25rem 1rem;
    background: rgba(248, 249, 250, 0.5);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.client-stats > div {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Contatos - Quarta e quinta linhas */
.client-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.client-contact:hover {
    background: #f8f9fa;
}

.contact-icon {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.contact-value {
    color: #555;
    flex: 1;
}

/* Botões de ação - Sexta linha */
.client-actions {
    padding: 0.5rem 1rem;
    background: white;
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    border-top: 1px solid rgba(0,0,0,0.1);
    align-items: center;
    flex-direction: row;
}

/* Garantir que os botões sempre fiquem lado a lado */
.client-actions .btn-small {
    flex-shrink: 0;
    min-width: auto;
}

/* Forçar botões lado a lado em todas as telas */
@media (max-width: 768px) {
    .client-actions {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
    }
}

@media (max-width: 480px) {
    .client-actions {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
    }
}

.alert-card {
    border-left: 4px solid var(--warning-color);
}

.alert-card.high-priority {
    border-left-color: var(--danger-color);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.alert-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.alert-time {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.alert-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.alert-priority.high {
    background-color: var(--danger-color);
    color: white;
}

.alert-priority.medium {
    background-color: var(--warning-color);
    color: white;
}

.alert-priority.low {
    background-color: var(--success-color);
    color: white;
}

.settings-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    max-width: 700px;
    margin: 0 auto;
}

.setting-group {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.setting-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.setting-group label i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.setting-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.section-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkbox-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.checkbox-label:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.checkbox-label:hover::before {
    left: 100%;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:checked ~ span {
    color: var(--secondary-color);
    font-weight: 600;
}

.checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-text strong {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.checkbox-text small {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
}

.single-checkbox {
    display: flex;
    flex-direction: column;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Share Section Styles */
.share-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    margin-top: 1rem;
}

.share-text {
    margin-bottom: 1.5rem;
}

.share-text p {
    margin-bottom: 0.75rem;
    color: #555;
    line-height: 1.6;
}

.share-text p:first-child {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.share-url {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.share-url input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 0.85rem;
    color: #6c757d;
    font-family: monospace;
}

.share-url input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166fe5;
    border-color: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1a91da;
    border-color: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.linkedin:hover {
    background: #006ba1;
    border-color: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #22c55e;
    border-color: #25d366;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.telegram:hover {
    background: #0077b3;
    border-color: #0088cc;
}

.share-btn.email {
    background: var(--secondary-color);
    color: white;
}

.share-btn.email:hover {
    background: #2980b9;
    border-color: var(--secondary-color);
}

.share-btn .icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-section {
    margin-top: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-section h2 {
   
    color: white;
    padding: 1.5rem;
    margin: 0;
}

.faq-container {
    padding: 1rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1rem 1rem;
    color: #7f8c8d;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    opacity: 1;
    max-height: 200px;
    padding: 1rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    padding: 1rem;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.05);
    animation: modalSlideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    padding: 2.5rem;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0.5rem;
    line-height: 1;
}

.close-modal:hover {
    color: var(--danger-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.modal form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    animation: fadeInUp 0.6s ease-out;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 100;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: #7f8c8d;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.nav-item.active::before {
    width: 100%;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
    color: #6c757d;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0.02) 100%);
    border-radius: 16px 16px 0 0;
    border-top: 1px solid rgba(0,123,255,0.1);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 1.2rem;
    width: auto;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(89%) contrast(97%);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(89%) contrast(97%) drop-shadow(0 0 4px rgba(44, 62, 80, 0.3));
}

.footer-brand p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-separator {
    color: #adb5bd;
    font-weight: 300;
}

.footer-version {
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-company p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-website {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.footer-website:hover {
    color: var(--primary-color);
}

.lgpd-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

.lgpd-badge i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* FAQ Page Enhanced Styles */
.faq-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.faq-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.faq-header .header-main h1 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.faq-header .header-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}


.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.faq-header-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
   
    border-radius: 16px;
    border: 1px solid rgba(0,123,255,0.1);
}

.faq-header-section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-shadow: none;
    letter-spacing: -0.5px;
    line-height: 1.2;
}


.faq-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(0,123,255,0.2);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover {
    background: rgba(0,123,255,0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.faq-item.expanded {
    box-shadow: 0 8px 30px rgba(0,123,255,0.2);
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0.02) 100%);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(0,123,255,0.05) 100%);
}

.faq-question .question-text {
    flex: 1;
    margin-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: var(--primary-color);
    color: white;
}

.faq-answer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.1);
    animation: slideDown 0.4s ease-out;
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1rem;
}

.faq-answer ol, .faq-answer ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: #555;
}

.faq-answer strong {
    color: var(--primary-color);
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.help-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0,123,255,0.1);
    text-align: center;
}

.help-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.help-section p {
    color: #666;
    margin-bottom: 1.5rem;
}

.help-section ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.help-section li {
    margin-bottom: 0.75rem;
    color: #555;
}

.help-section strong {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-content h1 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-logo {
        height: 1.8rem;
    }
    
    .header-stats {
        margin-top: 0.5rem;
    }
    
    .footer-brand h4 {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .footer-logo {
        height: 1rem;
    }
    
    .dashboard-header,
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filters {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .status-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .settings-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .faq-section {
        padding: 1rem;
    }
    
    .faq-header .header-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    
    .faq-header .header-main h1 {
        font-size: 2rem;
    }
    
    
    .faq-header-section {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-header-section h2 {
        font-size: 1.8rem;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -0.3px;
    }
    
    .faq-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-btn {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .faq-item {
        margin: 0 0.25rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    .help-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

/* Telas muito pequenas - melhorar legibilidade do H2 */
@media (max-width: 480px) {
    .faq-header-section {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .faq-header-section h2 {
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: -0.2px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .certificate-details {
        grid-template-columns: 1fr;
    }
    
    .certificate-actions,
    .client-actions {
        flex-direction: row !important;
        gap: 0.3rem;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
    }
    
    /* Manter estrutura de 6 linhas em telas pequenas */
    .client-name {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
        text-align: left;
        line-height: 1.2;
    }
    
    .client-document {
        margin: 0.2rem 0.5rem;
        text-align: left;
        display: block;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .client-stats {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.3rem 0.5rem 0.2rem 0.5rem;
    }
    
    .client-stats > div {
        font-size: 0.65rem;
        padding: 0.2rem 0.35rem;
    }
    
    .client-contact {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        justify-content: flex-start;
        text-align: left;
    }
    
    .client-actions {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.3rem;
        padding: 0.3rem 0.5rem;
    }
    
    .client-actions .btn-small {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
        min-width: auto;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Telas muito pequenas - manter estrutura de 6 linhas */
@media (max-width: 480px) {
    .client-card {
        margin: 0.25rem;
    }
    
    .client-name {
        font-size: 0.95rem;
        padding: 0.25rem 0.4rem;
        line-height: 1.1;
    }
    
    .client-document {
        margin: 0.15rem 0.4rem;
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .client-stats {
        padding: 0.25rem 0.4rem 0.15rem 0.4rem;
        gap: 0.2rem;
    }
    
    .client-stats > div {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
    }
    
    .client-contact {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .client-actions {
        padding: 0.25rem 0.4rem;
        gap: 0.25rem;
        flex-direction: row !important;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
    }
    
    .client-actions .btn-small {
        padding: 0.25rem 0.4rem;
        font-size: 0.6rem;
        flex-shrink: 0;
    }
    
    .status-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .checkbox-label {
        padding: 0.75rem;
    }
    
    .settings-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .setting-group {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .settings-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .share-buttons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .share-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .share-url {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .share-url input {
        font-size: 0.8rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0.5rem;
    }
    
    .header-content h1 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .header-logo {
        height: 1.5rem;
    }
    
    .footer-brand h4 {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
        font-size: 1rem;
    }
    
    .footer-logo {
        height: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .modal {
        padding: 0.5rem;
    }
    
    .nav-item {
        font-size: 0.7rem;
        padding: 0.5rem 0.25rem;
    }
    
    .nav-item i {
        font-size: 1rem;
    }
}

/* Privacy Page Styles */
.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.privacy-header-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2.5rem 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0,123,255,0.1);
    text-align: center;
}

.privacy-header-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: none;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.privacy-header-section p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.privacy-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.privacy-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.privacy-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.privacy-section h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.privacy-section h3 .icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.privacy-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.privacy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.privacy-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0,123,255,0.1);
}

.lgpd-compliance {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.lgpd-compliance .icon {
    color: var(--success-color);
    font-size: 2rem;
    flex-shrink: 0;
}

.lgpd-compliance h4 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.lgpd-compliance p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.privacy-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.privacy-actions .btn {
    min-width: 150px;
    justify-content: center;
}

/* Responsive adjustments for privacy page */
@media (max-width: 768px) {
    .privacy-content {
        padding: 1rem 0.5rem;
    }
    
    .privacy-header-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .privacy-header-section h2 {
        font-size: 2rem;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -0.3px;
    }
    
    .privacy-section {
        padding: 1.5rem;
    }
    
    .privacy-section h3 {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .lgpd-compliance {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .privacy-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .privacy-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .privacy-header-section {
        padding: 1.5rem 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .privacy-header-section h2 {
        font-size: 1.8rem;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: -0.2px;
    }
    
    .privacy-section {
        padding: 1rem;
    }
    
    .privacy-section h3 {
        font-size: 1.1rem;
    }
    
    .privacy-footer {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .lgpd-compliance {
        padding: 1rem;
    }
}
