/* assets/css/style.css - Cut & Style Barbershop Luxury Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bs-font-sans-serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --color-sidebar: #131417;
    --color-sidebar-card: #1c1d22;
    --color-sidebar-text: #9ca3af;
    --color-sidebar-hover: #26272e;
    
    --color-gold: #c59b27;
    --color-gold-light: #e0b440;
    --color-gold-hover: #b3891e;
    --color-gold-subtle: #fcf8eb;
    --color-gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    
    --color-bg-content: #f4f5f8;
    --color-card-bg: #ffffff;
    --color-card-border: #edf0f5;
    
    --color-dark-text: #191b1f;
    --color-muted-text: #6b7280;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.03);
    --shadow-gold: 0 6px 20px rgba(197, 155, 39, 0.28);
}

html, body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--color-bg-content);
    color: var(--color-dark-text);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Layout Wrapper */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Sidebar Styling - Fixed 260px */
.app-sidebar {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    background-color: var(--color-sidebar);
    color: var(--color-sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand img {
    height: 40px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.3);
    padding: 12px 14px 6px;
    font-weight: 700;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 4px;
    color: #9ba1ad;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.sidebar-link:hover {
    color: #ffffff;
    background-color: var(--color-sidebar-hover);
}

.sidebar-link:hover i {
    transform: translateX(2px);
}

.sidebar-link.active {
    background: var(--color-gold);
    color: #121316;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.sidebar-link.active i {
    color: #121316;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

/* Main Content Area */
.app-main,
.main-content {
    flex: 1 1 auto;
    min-width: 0;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Top Navbar Header */
.app-header {
    height: 76px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-greeting h4 {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-dark-text);
}

.header-greeting p {
    font-size: 0.82rem;
    color: var(--color-muted-text);
    margin: 0;
}

.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 8px;
    border-radius: var(--radius-full);
    background: #f8f9fb;
    border: 1px solid var(--color-card-border);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.user-profile-pill:hover {
    background: #f1f3f7;
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* Page Body Container */
.page-container {
    padding: 24px 28px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Luxury Modern Cards */
.card, .card-modern {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-card);
    padding: 22px 24px;
    margin-bottom: 24px;
    max-width: 100%;
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-modern:hover {
    box-shadow: var(--shadow-hover);
}

/* KPI Card Modern */
.kpi-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.kpi-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.kpi-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.kpi-label {
    font-size: 0.82rem;
    color: var(--color-muted-text);
    font-weight: 500;
    margin: 0;
}

.kpi-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    float: right;
}

.kpi-badge.positive {
    background: #ecfdf5;
    color: #10b981;
}

/* Buttons Modern Gold */
.btn-gold {
    background: var(--color-gold);
    color: #111315;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(197, 155, 39, 0.25);
    transition: all 0.2s ease;
}

.btn-gold:hover, .btn-gold:focus {
    background: var(--color-gold-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(197, 155, 39, 0.35);
}

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

.btn-gold-pill {
    border-radius: var(--radius-full);
    padding: 8px 18px;
}

/* Filter Pills */
.filter-pills-wrap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
}

.filter-pill {
    padding: 7px 18px;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--color-card-border);
    color: #4b5563;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.filter-pill:hover {
    background: #f3f4f6;
    color: #111827;
}

.filter-pill.active {
    background: var(--color-gold);
    color: #121316;
    border-color: var(--color-gold);
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25);
}

/* Status Badges */
.badge-member {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.badge-reguler {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-inactive::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

.badge-warning-soft {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* Modern Responsive Tables & Wrappers */
.app-table-scroll,
.table-modern-wrapper,
.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-card);
    margin-bottom: 1.25rem;
    position: relative;
}

.table-modern,
.table-responsive > table,
.app-table-scroll > table {
    width: 100%;
    min-width: 950px;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-wide,
.table-modern.table-wide,
.app-table-scroll > table.table-wide {
    min-width: 1100px;
}

.table-modern thead th,
.table-responsive > table thead th,
.app-table-scroll > table thead th {
    background: #fafbfc;
    padding: 14px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--color-card-border);
    white-space: nowrap;
}

.table-modern tbody tr,
.table-responsive > table tbody tr,
.app-table-scroll > table tbody tr {
    transition: background-color 0.15s ease;
}

.table-modern tbody tr:hover,
.table-responsive > table tbody tr:hover,
.app-table-scroll > table tbody tr:hover {
    background-color: #f9fafb;
}

.table-modern tbody td,
.table-responsive > table tbody td,
.app-table-scroll > table tbody td {
    padding: 14px 18px;
    font-size: 0.88rem;
    color: #1f2937;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-card-border);
    white-space: nowrap;
}

.table-modern tbody tr:last-child td,
.table-responsive > table tbody tr:last-child td,
.app-table-scroll > table tbody tr:last-child td {
    border-bottom: none;
}

/* Action column sticky to the right */
th.action-column, td.action-column,
th.col-action, td.col-action {
    position: sticky !important;
    right: 0;
    background: #ffffff;
    z-index: 2;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.table-modern thead th.action-column,
.table-modern thead th.col-action,
.app-table-scroll thead th.action-column,
.app-table-scroll thead th.col-action,
.table-responsive thead th.action-column,
.table-responsive thead th.col-action {
    background: #fafbfc !important;
    z-index: 3;
}

.table-modern tbody tr:hover td.action-column,
.table-modern tbody tr:hover td.col-action,
.app-table-scroll tbody tr:hover td.action-column,
.app-table-scroll tbody tr:hover td.col-action,
.table-responsive tbody tr:hover td.action-column,
.table-responsive tbody tr:hover td.col-action {
    background: #f9fafb !important;
}

/* Table Action Buttons */
.btn-table-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-table-action:hover {
    background: #f3f4f6;
    color: #111827;
}

.btn-table-action.delete:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-table-action.edit:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

/* Modern Modals */
.modal-modern .modal-content {
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-modern .modal-header {
    background: #ffffff;
    border-bottom: 1px solid var(--color-card-border);
    padding: 20px 24px;
}

.modal-modern .modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

.modal-modern .modal-body {
    padding: 24px;
    background: #ffffff;
}

.modal-modern .modal-footer {
    padding: 16px 24px;
    background: #fafbfc;
    border-top: 1px solid var(--color-card-border);
}

/* Form Controls Modern */
.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1.5px solid #e2e8f0;
    padding: 10px 14px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    color: #1f2937;
    background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
    .app-main,
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    .page-container {
        padding: 20px 16px;
    }
    .app-header {
        padding: 0 16px;
    }
}
