/* ============================================================================
   ONION SCANNER - DENTAL MANAGEMENT SYSTEM
   Standalone CSS - No dependencies on old project
   ============================================================================ */

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
    --text: #374151;
    --text-light: #6b7280;
    --sidebar-width: 280px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(99, 102, 241, 0.15);
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin-bottom: 15px;
}

.sidebar-header h2 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.sidebar-tagline {
    font-size: 0.85em;
    opacity: 0.9;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 4px solid white;
}

.nav-item i {
    width: 24px;
    margin-right: 15px;
    font-size: 1.2em;
}

.nav-item .badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.75em;
    opacity: 0.8;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--light);
}

.top-bar {
    background: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-title {
    flex: 1;
}

.top-bar-title h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--dark);
}

.top-bar-title p {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: var(--text-light);
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.top-bar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--light);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    color: var(--text);
}

.icon-button:hover {
    background: var(--border);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ============================================================================
   VIEW CONTENT
   ============================================================================ */

.view-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

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

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

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2em;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header h1 i {
    color: var(--primary);
}

.page-header p {
    color: var(--text-light);
    font-size: 1.05em;
}

/* ============================================================================
   STATS CARDS
   ============================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
}

.stat-card.stat-primary .stat-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.stat-card.stat-success .stat-icon {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.stat-card.stat-warning .stat-icon {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
}

.stat-card.stat-info .stat-icon {
    background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* ============================================================================
   CHARTS
   ============================================================================ */

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 1.2em;
    color: var(--dark);
}

.select-period {
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
}

.chart-container {
    height: 300px;
    position: relative;
}

.treatment-list {
    min-height: 300px;
}

/* ============================================================================
   MODERN BUTTONS
   ============================================================================ */

.btn-modern {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern i {
    position: relative;
    z-index: 1;
}

.btn-modern span {
    position: relative;
    z-index: 1;
}

.btn-export {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-export:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-export:active {
    transform: translateY(-1px);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-delete:active {
    transform: translateY(-1px);
}

.btn-cancel {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-cancel:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.btn-cancel:active {
    transform: translateY(-1px);
}

/* Small Button Styles */
.btn-sm.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 6px 10px;
}

.btn-sm.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.btn-sm.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 6px 10px;
}

.btn-sm.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.btn-sm.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 6px 10px;
}

.btn-sm.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   MODAL STYLES - Enhanced for Payment Modal
   ============================================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.modal-header h2 {
    font-size: 1.5em;
    color: #6366f1;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form .form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

.modal-form .form-group input:focus,
.modal-form .form-group select:focus,
.modal-form .form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button enhancements */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .modal-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header,
    .modal-footer {
        padding: 15px 20px;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* ============================================================================
   SETTINGS VIEW - Role Management Styles
   ============================================================================ */

.role-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.role-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.role-card-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.role-card-header h3 {
    color: #374151;
    margin: 10px 0;
    font-size: 1.3em;
}

.role-description {
    color: #6b7280;
    font-size: 0.9em;
    margin: 10px 0 0;
}

.role-card-body {
    margin: 20px 0;
}

.role-stat {
    text-align: center;
    margin-bottom: 20px;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #6b7280;
    margin-top: 5px;
}

.permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.permission-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
}

.role-card-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.role-card-footer button {
    flex: 1;
}

/* Permissions Matrix */
.permissions-matrix {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.permissions-matrix thead th {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

.permissions-matrix tbody td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.permissions-matrix tbody tr:hover {
    background: #f9fafb;
}

.permission-cell {
    text-align: center;
}

/* Toggle Switch */
.permission-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.permission-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.permission-toggle input:checked + .toggle-slider {
    background-color: #10b981;
}

.permission-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Permission Checklist */
.permissions-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.permission-checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.permission-checkbox-item:hover {
    background: #e5e7eb;
}

.permission-checkbox-item input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6366f1;
}

.permission-checkbox-item span {
    font-weight: 500;
    color: #374151;
}

/* Permission Details Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.permission-item-detail {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Buttons Enhancement */
.btn-modern {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-modern:hover {
    background: #e5e7eb;
    color: #1f2937;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.btn-modern.btn-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.btn-modern.btn-info:hover {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .role-management-grid {
        grid-template-columns: 1fr;
    }
    
    .permissions-checklist,
    .permissions-grid {
        grid-template-columns: 1fr;
    }
    
    .role-card-footer {
        flex-direction: column;
    }
}

/* ============================================================================
   SUBMENU STYLES
   ============================================================================ */

.nav-item.has-submenu {
    position: relative;
}

.submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.nav-item.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 5px 0;
}

.submenu.active {
    max-height: 300px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 5px 10px;
    font-size: 0.95em;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 25px;
}

.submenu-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}

.submenu-item i {
    width: 18px;
    text-align: center;
}

/* ============================================================================
   TABS STYLES
   ============================================================================ */

.tabs-container {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #6366f1;
    background: #f0f4ff;
}

.tab-btn.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: #f0f4ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ============================================================================
   PAYROLL SPECIFIC STYLES
   ============================================================================ */

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-icon.btn-success {
    background: #dcfce7;
    color: #16a34a;
}

.btn-icon.btn-success:hover {
    background: #10b981;
    color: white;
}
