/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --sidebar-bg: #1e293b;
    --sidebar-text: #e2e8f0;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

/* ===== LAYOUT ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header p {
    color: var(--sidebar-text);
    font-size: 0.875rem;
    opacity: 0.7;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border-left-color: var(--primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    width:500px;
    flex: 1;
    margin-left: 280px;
    background: #f1f5f9;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
    background: var(--header-bg);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.header-left p {
    color: var(--secondary);
    font-size: 0.875rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: #e2e8f0;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-weight: 600;
    color: var(--dark);
}

/* ===== SECTIONS ===== */
.kpi-section, .charts-section, .stats-section {
    padding: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 0.875rem;
}

/* ===== KPI GRID ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.kpi-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kpi-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.kpi-badge.success {
    background: #dcfce7;
    color: #166534;
}

.kpi-badge.danger {
    background: #fecaca;
    color: #991b1b;
}

.kpi-content {
    space-y: 1rem;
}

.kpi-item {
    margin-bottom: 1rem;
}

.kpi-item:last-child {
    margin-bottom: 0;
}

.kpi-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary);
}

.growth {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.growth.positive {
    background: #dcfce7;
    color: #166534;
}

.growth.negative {
    background: #fecaca;
    color: #991b1b;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== CHARTS ===== */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.chart-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-subtitle {
    color: var(--secondary);
    font-size: 0.875rem;
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary);
}

.chart-container {
    height: 300px;
    position: relative;
}

/* ===== TARGETS ===== */
.targets-list {
    space-y: 1.5rem;
}

.target-item {
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.target-company {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.target-progress {
    space-y: 0.75rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-item span:first-child {
    min-width: 80px;
    font-size: 0.875rem;
    color: var(--secondary);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    min-width: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
}

.no-targets {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--secondary);
}

.no-targets i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-targets p {
    margin-bottom: 1.5rem;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.bg-primary { background: var(--primary); }
.stat-icon.bg-success { background: var(--success); }
.stat-icon.bg-danger { background: var(--danger); }
.stat-icon.bg-warning { background: var(--warning); }

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--secondary);
    font-size: 0.875rem;
}

/* ===== FORM STYLES ===== */
.form-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* ===== TABLE STYLES ===== */
.table-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: var(--light);
}

/* ===== UTILITY CLASSES ===== */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }

.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
    
    .kpi-grid,
    .chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 1rem;
    }
    
    .kpi-section, .charts-section, .stats-section {
        padding: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .user-profile span {
        display: none;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.kpi-card, .chart-card, .stat-card {
    animation: fadeIn 0.6s ease-out;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== FORM SPECIFIC STYLES ===== */
.form-section {
    padding: 2rem;
}

.income-form {
    space-y: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Amount Input Styling */
.amount-input-container {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-weight: 600;
    z-index: 2;
}

.amount-input {
    padding-left: 3rem !important;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--light);
    border-color: var(--secondary);
}

/* Alert Styles */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: #fecaca;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.875rem;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stats-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stats-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stats-card .stat-info h4 {
    font-size: 0.875rem;
    color: var(--secondary);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.stats-card .stat-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
    margin: 0;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
}

/* Select Dropdown Styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* ===== VIEW PAGES SPECIFIC STYLES ===== */
.table-section {
    padding: 2rem;
}

.summary-section {
    padding: 0 2rem;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.summary-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.summary-content p {
    color: var(--secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Filters Card */
.filters-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filters-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-count {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    space-y: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: var(--light);
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Data Card */
.data-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

/* Advanced Table */
.advanced-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.advanced-table th {
    background: var(--light);
    padding: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.advanced-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.advanced-table tbody tr {
    transition: all 0.3s ease;
}

.advanced-table tbody tr:hover {
    background: var(--light);
}

/* Sortable Headers */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sortable:hover {
    color: var(--primary);
}

/* Special Cells */
.date-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 70px;
}

.date-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.date-month {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-top: 0.25rem;
}

.company-cell, .category-cell, .source-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.amount-cell {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
}

.income-amount {
    color: var(--success);
}

.description-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-muted {
    color: var(--secondary);
    font-style: italic;
}

/* Type Badges */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-recurring {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.type-new_sales {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-edit {
    background: #fef3c7;
    color: #d97706;
}

.btn-edit:hover {
    background: #fcd34d;
    color: #92400e;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fca5a5;
    color: #991b1b;
}

.btn-view {
    background: #dbeafe;
    color: #2563eb;
}

.btn-view:hover {
    background: #93c5fd;
    color: #1e40af;
}

/* No Data State */
.no-data-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary);
}

.no-data-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-data-state h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-data-state p {
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Table Footer */
.table-footer {
    background: var(--light);
    font-weight: 600;
}

.footer-label {
    padding: 1.5rem 1rem;
    color: var(--dark);
    text-align: right;
}

.footer-amount {
    padding: 1.5rem 1rem;
    color: var(--success);
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--light);
}

.pagination-info {
    color: var(--secondary);
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-current {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .advanced-table {
        font-size: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 28px;
        height: 28px;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ===== TARGETS SPECIFIC STYLES ===== */
.targets-section {
    padding: 2rem;
}

.targets-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Performance Card */
.performance-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.performance-header {
    margin-bottom: 1.5rem;
}

.performance-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.performance-subtitle {
    color: var(--secondary);
    font-size: 0.875rem;
}

.performance-grid {
    space-y: 1rem;
}

.company-performance {
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.company-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.profit-margin {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.profit-margin.positive {
    background: #dcfce7;
    color: #166534;
}

.profit-margin.negative {
    background: #fecaca;
    color: #991b1b;
}

.performance-stats {
    space-y: 0.5rem;
}

.performance-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--secondary);
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-value.revenue {
    color: var(--success);
}

.stat-value.expense {
    color: var(--danger);
}

.stat-value.profit {
    color: var(--success);
}

.stat-value.loss {
    color: var(--danger);
}

/* Target Form Card */
.target-form-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--secondary);
    margin: 0;
}

/* Suggestions */
.suggestions {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.suggestion-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #0369a1;
}

.suggestion-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: #0369a1;
    color: white;
    border-color: #0369a1;
}

/* Profit Margin Display */
.profit-margin-display {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.margin-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.margin-label {
    font-weight: 600;
    color: var(--dark);
}

.margin-value {
    font-weight: 700;
    color: var(--success);
}

.margin-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.margin-fill {
    height: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 0%;
}

/* Target Preview */
.target-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #166534;
}

.preview-content {
    space-y: 0.75rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    font-weight: 600;
    color: #166534;
}

.preview-value {
    font-weight: 600;
}

.preview-value.revenue {
    color: var(--success);
}

.preview-value.profit {
    color: var(--success);
}

/* Form Grid Adjustments */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .targets-layout {
        grid-template-columns: 1fr;
    }
    
    .performance-card {
        order: 2;
    }
    
    .target-form-card {
        order: 1;
    }
}

@media (max-width: 768px) {
    .targets-section {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestion-buttons {
        flex-direction: column;
    }
    
    .suggestion-btn {
        text-align: center;
    }
    
    .performance-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Animation for preview */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.target-preview {
    animation: slideInUp 0.5s ease-out;
}

/* Enhanced Form Styles */
.amount-input-container {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-weight: 600;
    z-index: 2;
}

.amount-input {
    padding-left: 3rem !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
/* ===== TARGETS SPECIFIC STYLES ===== */
.targets-section {
    padding: 2rem;
}

.targets-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Performance Card */
.performance-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.performance-header {
    margin-bottom: 1.5rem;
}

.performance-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.performance-subtitle {
    color: var(--secondary);
    font-size: 0.875rem;
}

.performance-grid {
    space-y: 1rem;
}

.company-performance {
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.company-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.profit-margin {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.profit-margin.positive {
    background: #dcfce7;
    color: #166534;
}

.profit-margin.negative {
    background: #fecaca;
    color: #991b1b;
}

.performance-stats {
    space-y: 0.5rem;
}

.performance-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--secondary);
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-value.revenue {
    color: var(--success);
}

.stat-value.expense {
    color: var(--danger);
}

.stat-value.profit {
    color: var(--success);
}

.stat-value.loss {
    color: var(--danger);
}

/* Target Form Card */
.target-form-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--secondary);
    margin: 0;
}

/* Suggestions */
.suggestions {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.suggestion-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #0369a1;
}

.suggestion-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: #0369a1;
    color: white;
    border-color: #0369a1;
}

/* Profit Margin Display */
.profit-margin-display {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.margin-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.margin-label {
    font-weight: 600;
    color: var(--dark);
}

.margin-value {
    font-weight: 700;
    color: var(--success);
}

.margin-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.margin-fill {
    height: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 0%;
}

/* Target Preview */
.target-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #166534;
}

.preview-content {
    space-y: 0.75rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    font-weight: 600;
    color: #166534;
}

.preview-value {
    font-weight: 600;
}

.preview-value.revenue {
    color: var(--success);
}

.preview-value.profit {
    color: var(--success);
}

/* Form Grid Adjustments */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .targets-layout {
        grid-template-columns: 1fr;
    }
    
    .performance-card {
        order: 2;
    }
    
    .target-form-card {
        order: 1;
    }
}

@media (max-width: 768px) {
    .targets-section {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestion-buttons {
        flex-direction: column;
    }
    
    .suggestion-btn {
        text-align: center;
    }
    
    .performance-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Animation for preview */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.target-preview {
    animation: slideInUp 0.5s ease-out;
}

/* Enhanced Form Styles */
.amount-input-container {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-weight: 600;
    z-index: 2;
}

.amount-input {
    padding-left: 3rem !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ===== BASE STYLES (Ensure these are in your CSS) ===== */
:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --sidebar-bg: #1e293b;
    --sidebar-text: #e2e8f0;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== FORM STYLES ===== */
.form-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--light);
    border-color: var(--secondary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===== ALERT STYLES ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: #fecaca;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.875rem;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ===== LAYOUT STYLES ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header p {
    color: var(--sidebar-text);
    font-size: 0.875rem;
    opacity: 0.7;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border-left-color: var(--primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    background: #f1f5f9;
    min-height: 100vh;
}

.header {
    background: var(--header-bg);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.header-left p {
    color: var(--secondary);
    font-size: 0.875rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: #e2e8f0;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-weight: 600;
    color: var(--dark);
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.5s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }

.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }
.bg-info { background: var(--info); }
.bg-secondary { background: var(--secondary); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-profile span {
        display: none;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}
/* ===== TARGETS VIEW SPECIFIC STYLES ===== */
.insights-section {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--light);
}

.insights-header {
    margin-bottom: 1rem;
}

.insights-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.insight-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.insight-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.insight-content h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.25rem 0;
}

.insight-content p {
    font-size: 0.75rem;
    color: var(--secondary);
    margin: 0 0 0.5rem 0;
}

.insight-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

/* Achievement Styles */
.achievement-container {
    space-y: 0.5rem;
}

.achievement-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.achievement-text {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

.achievement-difference {
    text-align: center;
}

.diff-positive {
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
    background: #dcfce7;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.diff-negative {
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 600;
    background: #fecaca;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Status Indicators */
.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-achieved {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-on-track {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.status-at-risk {
    background: #fecaca;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Amount Cell Styles */
.amount-cell.target-amount {
    color: var(--primary);
    font-weight: 700;
}

.amount-cell.achieved {
    color: var(--success);
    font-weight: 700;
}

.amount-cell.pending {
    color: var(--warning);
    font-weight: 700;
}

/* Date Cell Styles */
.date-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 60px;
}

.date-month {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.date-year {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-top: 0.25rem;
}

/* Enhanced Table Styles */
.advanced-table th, 
.advanced-table td {
    padding: 1rem 0.75rem;
}

/* Responsive Design for Targets */
@media (max-width: 1024px) {
    .advanced-table {
        font-size: 0.75rem;
    }
    
    .status-indicator {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .achievement-bar {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .achievement-text {
        min-width: auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .status-indicators {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .advanced-table th:nth-child(5),
    .advanced-table td:nth-child(5),
    .advanced-table th:nth-child(8),
    .advanced-table td:nth-child(8) {
        display: none;
    }
}

/* Print Styles for Reports */
@media print {
    .sidebar, .header-actions, .filters-card, .insights-section {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .data-card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .achievement-bar {
        page-break-inside: avoid;
    }
}
/* ===== TARGETS VIEW SPECIFIC STYLES ===== */
.insights-section {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--light);
}

.insights-header {
    margin-bottom: 1rem;
}

.insights-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.insight-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.insight-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.insight-content h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.25rem 0;
}

.insight-content p {
    font-size: 0.75rem;
    color: var(--secondary);
    margin: 0 0 0.5rem 0;
}

.insight-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

/* Achievement Styles */
.achievement-container {
    space-y: 0.5rem;
}

.achievement-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.achievement-text {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

.achievement-difference {
    text-align: center;
}

.diff-positive {
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
    background: #dcfce7;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.diff-negative {
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 600;
    background: #fecaca;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Status Indicators */
.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-achieved {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-on-track {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.status-at-risk {
    background: #fecaca;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Amount Cell Styles */
.amount-cell.target-amount {
    color: var(--primary);
    font-weight: 700;
}

.amount-cell.achieved {
    color: var(--success);
    font-weight: 700;
}

.amount-cell.pending {
    color: var(--warning);
    font-weight: 700;
}

/* Date Cell Styles */
.date-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 60px;
}

.date-month {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.date-year {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-top: 0.25rem;
}

/* Enhanced Table Styles */
.advanced-table th, 
.advanced-table td {
    padding: 1rem 0.75rem;
}

/* Responsive Design for Targets */
@media (max-width: 1024px) {
    .advanced-table {
        font-size: 0.75rem;
    }
    
    .status-indicator {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .achievement-bar {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .achievement-text {
        min-width: auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .status-indicators {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .advanced-table th:nth-child(5),
    .advanced-table td:nth-child(5),
    .advanced-table th:nth-child(8),
    .advanced-table td:nth-child(8) {
        display: none;
    }
}

/* Print Styles for Reports */
@media print {
    .sidebar, .header-actions, .filters-card, .insights-section {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .data-card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .achievement-bar {
        page-break-inside: avoid;
    }
}

/* ===== TARGETS SPECIFIC STYLES ===== */
.targets-section {
    padding: 2rem;
}

.targets-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Performance Card */
.performance-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.performance-header {
    margin-bottom: 1.5rem;
}

.performance-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.performance-subtitle {
    color: var(--secondary);
    font-size: 0.875rem;
}

.performance-grid {
    space-y: 1rem;
}

.company-performance {
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.company-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.profit-margin {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.profit-margin.positive {
    background: #dcfce7;
    color: #166534;
}

.profit-margin.negative {
    background: #fecaca;
    color: #991b1b;
}

.performance-stats {
    space-y: 0.5rem;
}

.performance-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--secondary);
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-value.revenue {
    color: var(--success);
}

.stat-value.expense {
    color: var(--danger);
}

.stat-value.profit {
    color: var(--success);
}

.stat-value.loss {
    color: var(--danger);
}

/* Target Form Card */
.target-form-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--secondary);
    margin: 0;
}

/* Suggestions */
.suggestions {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.suggestion-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #0369a1;
}

.suggestion-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: #0369a1;
    color: white;
    border-color: #0369a1;
}

/* Profit Margin Display */
.profit-margin-display {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.margin-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.margin-label {
    font-weight: 600;
    color: var(--dark);
}

.margin-value {
    font-weight: 700;
    color: var(--success);
}

.margin-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.margin-fill {
    height: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 0%;
}

/* Target Preview */
.target-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #166534;
}

.preview-content {
    space-y: 0.75rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    font-weight: 600;
    color: #166534;
}

.preview-value {
    font-weight: 600;
}

.preview-value.revenue {
    color: var(--success);
}

.preview-value.profit {
    color: var(--success);
}

/* Form Grid Adjustments */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .targets-layout {
        grid-template-columns: 1fr;
    }
    
    .performance-card {
        order: 2;
    }
    
    .target-form-card {
        order: 1;
    }
}

@media (max-width: 768px) {
    .targets-section {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestion-buttons {
        flex-direction: column;
    }
    
    .suggestion-btn {
        text-align: center;
    }
    
    .performance-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Animation for preview */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.target-preview {
    animation: slideInUp 0.5s ease-out;
}

/* ===== BASE STYLES (Ensure these are in your CSS) ===== */
:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --sidebar-bg: #1e293b;
    --sidebar-text: #e2e8f0;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== FORM STYLES ===== */
.form-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--light);
    border-color: var(--secondary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===== ALERT STYLES ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: #fecaca;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.875rem;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ===== LAYOUT STYLES ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header p {
    color: var(--sidebar-text);
    font-size: 0.875rem;
    opacity: 0.7;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border-left-color: var(--primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    background: #f1f5f9;
    min-height: 100vh;
}

.header {
    background: var(--header-bg);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.header-left p {
    color: var(--secondary);
    font-size: 0.875rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: #e2e8f0;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-weight: 600;
    color: var(--dark);
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.5s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }

.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }
.bg-info { background: var(--info); }
.bg-secondary { background: var(--secondary); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-profile span {
        display: none;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

/* ===== TABLE STYLES ===== */
.table-section {
    padding: 2rem;
}

.summary-section {
    padding: 0 2rem;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.summary-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.summary-content p {
    color: var(--secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Filters Card */
.filters-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filters-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-count {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    space-y: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: var(--light);
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Data Card */
.data-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

/* Advanced Table */
.advanced-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.advanced-table th {
    background: var(--light);
    padding: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.advanced-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.advanced-table tbody tr {
    transition: all 0.3s ease;
}

.advanced-table tbody tr:hover {
    background: var(--light);
}

/* Sortable Headers */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sortable:hover {
    color: var(--primary);
}

/* Special Cells */
.company-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.amount-cell {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
}

.text-muted {
    color: var(--secondary);
    font-style: italic;
}

/* No Data State */
.no-data-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary);
}

.no-data-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-data-state h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-data-state p {
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}