/**
 * Kuaför Randevu Sistemi - Modern Stil Dosyası
 */

:root {
    --primary-color: #4361ee;
    --primary-hover: #3a0ca3;
    --secondary-color: #f72585;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2b2d42;
    --text-muted: #8d99ae;
    --success: #4cc9f0;
    --warning: #fca311;
    --danger: #ef233c;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Navbar Modernization */
.navbar {
    background: linear-gradient(120deg, #224aa5 0%, #2a36b8 45%, #3d1fa6 100%) !important;
    box-shadow: 0 10px 28px rgba(24, 40, 98, 0.28);
    border: 0;
    border-radius: 0;
    margin: 0 !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.3px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 12px;
    padding: 0.6rem 0.9rem !important;
    margin: 0 0.12rem;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.navbar .dropdown-toggle::after {
    margin-left: 0.45rem;
    vertical-align: 0.12em;
}

.navbar .dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(12, 22, 62, 0.2);
    padding: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
    background-color: #edf3ff;
    color: #183d7d;
}

.nav-user {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 0.45rem 0.7rem;
    line-height: 1.1;
}

.btn-logout {
    border-radius: 10px;
    padding: 0.48rem 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.94);
    color: #152f66;
    box-shadow: none;
}

.btn-logout:hover {
    background: #fff;
    color: #0f2b66;
    border-color: #fff;
}

/* Card Modernization */
.card {
    border: none;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Button Modernization */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}

.btn-success {
    background-color: #2ec4b6;
    border-color: #2ec4b6;
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
}

/* Table Modernization */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f1f3f5;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
}

/* Footer */
footer {
    background-color: white !important;
    border-top: none !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.02);
}

/* Statistics Dashboard Elements */
.stat-card {
    border-left: 4px solid var(--primary-color);
}
.stat-card-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }
    .nav-link {
        color: var(--text-main) !important;
    }
    .nav-link:hover {
        background-color: #f8f9fa;
        color: var(--primary-color) !important;
    }
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* SweetAlert Customization */
div:where(.swal2-container) {
    z-index: 2000 !important;
}

/* Select2 Customization */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    min-height: 48px;
}
.select2-container--bootstrap-5 .select2-selection--single {
    height: auto;
}

/* Mobile Offcanvas Customization */
.offcanvas.offcanvas-start {
    width: 280px;
}

.offcanvas-body .list-group-item {
    transition: background-color 0.2s ease;
}

.offcanvas-body .list-group-item:hover {
    background-color: rgba(255,255,255,0.1) !important;
}

.offcanvas-body .list-group-item.active {
    background-color: rgba(255,255,255,0.15) !important;
}

/* Dashboard Specific Styles */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Unified Dashboard Redesign */
.dashboard-shell {
    position: relative;
}

.dashboard-hero {
    background: linear-gradient(120deg, #0f4c81 0%, #2456b8 55%, #22a1a8 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.6rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 16px 30px rgba(23, 68, 128, 0.25);
}

.dashboard-hero__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.dashboard-hero__subtitle {
    margin-top: 0.35rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.dashboard-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
}

.dash-stat {
    border: 0;
    border-radius: 14px;
    height: 100%;
}

.dash-stat .card-body {
    padding: 1.15rem;
}

.dash-stat__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.dash-stat__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.dash-stat__label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.7px;
    margin: 0;
}

.dash-stat__value {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1.1;
}

.dash-stat__meta {
    margin-top: 0.35rem;
    color: #6c757d;
    font-size: 0.84rem;
}

.dash-panel {
    border: 0;
    border-radius: 14px;
}

.dash-panel .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(13, 38, 76, 0.08);
    padding: 0.95rem 1.15rem;
}

.dash-panel .card-body {
    padding: 1rem 1.15rem;
}

.dash-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    background-color: #f6f8fd;
    color: #24364f;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dash-link:hover {
    background-color: #eaf1ff;
    color: #133a7c;
    transform: translateX(2px);
}

.dash-alert {
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    background: #fff9e8;
    padding: 0.95rem 1rem;
}

.dash-table thead th {
    font-size: 0.75rem;
}

/* Randevu listesi: durum dropdown menusu satir disina tasabilsin */
.randevu-table-wrap {
    overflow: visible !important;
    overflow-y: visible !important;
}

.randevu-table-wrap .dropdown-menu {
    z-index: 1200;
}

.randevu-list-card,
.randevu-list-card .card-body {
    overflow: visible !important;
}

.randevu-mobile-card,
.randevu-mobile-card .card-body {
    overflow: visible !important;
}

#genericModal .modal-body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 1.15rem;
    }

    .dashboard-hero__title {
        font-size: 1.18rem;
    }
}



/* Hide main menu items on mobile, show only in offcanvas */
@media (max-width: 991.98px) {
    #desktopMenu {
        display: none !important;
    }
    
    .navbar-toggler {
        display: block !important;
    }
}

/* Show menu items on desktop */
@media (min-width: 992px) {
    #desktopMenu {
        display: flex !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
}
