/* ===== ESTILOS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #1e293b;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background: linear-gradient(195deg, #4f3451, #311633);
    color: white;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    z-index: 1001;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.75rem;
    opacity: 0.8;
}

.sidebar-menu {
    flex: 1;
    padding: 25px 0;
    overflow-y: auto;
}

.menu-section {
    margin-bottom: 30px;
}

.menu-section h3 {
    padding: 0 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 12px;
}

.menu-section ul {
    list-style: none;
}

.menu-section li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-section li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-section li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-left-color: white;
}

.user-profile {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    position: relative;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    background: #ff9f43;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-info p {
    font-size: 0.75rem;
    opacity: 0.7;
}

.user-actions a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.user-actions a:hover {
    color: white;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f7fb;
}

.top-bar {
    background: white;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #334155;
    cursor: pointer;
    display: none;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 40px;
    padding: 8px 18px;
    width: 300px;
}

.search-bar i {
    color: #94a3b8;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.notification-btn,
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #334155;
    cursor: pointer;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 20px;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 280px;
    display: none;
    z-index: 1000;
    margin-top: 5px;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-time {
    font-size: 0.7rem;
    color: #64748b;
}

.notification-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.notification-footer a {
    color: #4f3451;
    text-decoration: none;
    font-size: 0.85rem;
}

.quick-action-btn {
    width: 38px;
    height: 38px;
    background: #4f3451;
    color: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: #3b203d;
}

/* ===== CONTEÚDO DO DASHBOARD ===== */
.dashboard-content {
    padding: 25px;
    flex: 1;
}

.page-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.page-header h1 i {
    color: #4f3451;
    margin-right: 10px;
}

/* Cards de estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4f3451, #634865);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.stat-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
}

.stat-info .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

/* Cards comuns */
.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
}

.card h2 i {
    color: #4f3451;
}

/* Tabelas */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

/* Badges de status */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-aberto,
.badge-pendente {
    background: #fef3c7;
    color: #b45309;
}

.badge-em_andamento {
    background: #dbeafe;
    color: #1e40af;
}

.badge-concluido,
.badge-assinado {
    background: #dcfce7;
    color: #166534;
}

.badge-cancelado,
.badge-recusado {
    background: #fee2e2;
    color: #b91c1c;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    background: #4f3451;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #3b203d;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Footer */
.footer {
    background: white;
    padding: 15px 25px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

.footer a {
    color: #4f3451;
    text-decoration: none;
    font-weight: 600;
}

/* Overlay e responsividade */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width:768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        transition: left 0.3s ease;
        z-index: 1001;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-toggle {
        display: block !important;
    }

    .search-bar {
        width: auto;
        flex: 1;
    }

    .quick-action-btn {
        display: none;
    }
}

/* Dark theme (opcional, mantido do original) */
body.dark-theme {
    background: #1a1c1e;
    color: #e0e0e0;
}

body.dark-theme .main-content {
    background: #1a1c1e;
}

body.dark-theme .card,
body.dark-theme .top-bar,
body.dark-theme .footer,
body.dark-theme .stat-card {
    background: #2d2f31;
    color: #e0e0e0;
    border-color: #444;
}

/* ... demais estilos dark ... */