.dashboard {
    padding: 100px 0 var(--space-lg);
    min-height: 100vh;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-lg);
}

/* Sidebar */
.sidebar {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.user-profile {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-sm);
}

.user-profile h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
}

#profileEmail {
    font-size: 0.75rem;
    color: var(--text-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.menu ul {
    list-style: none;
}

.menu li {
    margin-bottom: var(--space-xs);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
    color: var(--text-medium);
}

.menu li:hover {
    background-color: rgba(0, 168, 89, 0.05);
    color: var(--primary-dark);
}

.menu li.active {
    background-color: rgba(0, 168, 89, 0.1);
    color: var(--primary-dark);
    font-weight: 600;
}

.menu li i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    min-height: 80vh;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-md);
}

.section-header h2 {
    color: var(--primary-dark);
}

.btn-edit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
}

.btn-edit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.info-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    color: var(--white);
    font-size: 1.2rem;
    background-color: var(--primary-color);
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: var(--space-xs) 0;
}

.card-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    padding: var(--space-xs) 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
}

.card-link:hover {
    text-decoration: underline;
}

/* Profile Details */
.profile-details {
    margin-top: var(--space-lg);
}

.detail-group {
    margin-bottom: var(--space-lg);
    background-color: rgba(123, 220, 181, 0.05);
    border-radius: var(--radius-md);
    padding: 0 var(--space-md) var(--space-md);
    border-left: 4px solid var(--primary-light);
}

.detail-group h4 {
    color: var(--primary-dark);
    margin: var(--space-md) 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.detail-row {
    display: flex;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    font-weight: 500;
    color: var(--text-medium);
    min-width: 150px;
}

.detail-value {
    flex: 1;
    color: var(--text-dark);
}

.edit-input {
    flex: 1;
    padding: var(--space-xs);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.edit-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Edit Actions */
.edit-actions {
    margin-top: var(--space-lg);
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-cancel {
    background: var(--border-color);
    color: var(--text-dark);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-cancel:hover {
    background: #d1d5d8;
    transform: translateY(-2px);
}

/* Empty Message */
.empty-message {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-medium);
    opacity: 0.7;
}

/* Menu mobile */
@media (max-width: 1023px) {
    .menu-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 70px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 70px);
        z-index: 999;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dashboard {
        padding: 80px 0 var(--space-md);
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .detail-row label {
        min-width: auto;
    }
    
    .edit-actions {
        flex-direction: column;
    }
    
    .menu li {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.9rem;
    }
    
    .user-profile {
        padding: var(--space-md);
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}


.table-container {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
}

.list-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-family: 'Inter', sans-serif;
}

.list-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.list-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.list-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.list-table tbody tr {
    border-bottom: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.list-table tbody tr:last-child {
    border-bottom: none;
}

.list-table tbody tr:hover {
    background-color: rgba(123, 220, 181, 0.05); /* primary-light com 5% de opacidade */
}

.list-table td {
    padding: 15px 20px;
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* Linhas alternadas com tons de verde suave */
.list-table tbody tr:nth-child(even) {
    background-color: rgba(123, 220, 181, 0.03); /* primary-light com 3% de opacidade */
}

/* Badges de status */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.status-badge.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}

.status-badge.expired {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
}

/* Mensagem quando não há dados */
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--medium-color);
    font-style: italic;
    border: 1px dashed var(--medium-gray);
    border-radius: var(--radius-md);
    margin: 30px 0;
    background-color: rgba(123, 220, 181, 0.05); /* primary-light com 5% de opacidade */
}

/* Responsividade */
@media (max-width: 767px) {
    .list-table th, 
    .list-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .table-container {
        border-radius: var(--radius-sm);
    }
}
/* Estilos para ações */
.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-view, .btn-edit {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-view {
    background-color: rgba(0, 168, 89, 0.1);
    color: var(--primary-color);
}

.btn-edit {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.btn-view:hover, .btn-edit:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}
/* Adicione no main.css ou dashboard.css */
.btn-view-detail {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view-detail:hover {
    background-color: var(--primary-dark);
}

.btn-view-detail i {
    font-size: 14px;
}
/* Modal de detalhes */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    background: var(--primary-dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

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

.detail-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.detail-item strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 5px;
}