:root {
    --erp-bg: #f8fafc;
    --erp-card: #ffffff;
    --erp-primary: #0d6efd;
    --erp-secondary: #64748b;
    --erp-success: #10b981;
    --medical-blue: #0061f2;
    --medical-soft: #f0f5ff;
    --medical-success: #00ac69;
    --text-dark: #2c3e50;
    --border-color: #e2e8f0;
    --hosp-primary: #0061f2;
    --hosp-success: #10b981;
    --hosp-danger: #ef4444;
    --hosp-warning: #f59e0b;
    --hosp-bg: #f8fafc;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02); 
    --erp-text: #1e293b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--erp-bg);
    color: #1e293b;
}

/* Navigasyon - Üst Bar */
.nav-erp {
    background: var(--erp-card);
    border-radius: 1.25rem;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

    .nav-erp .nav-link {
        border-radius: 1rem;
        padding: 0.8rem 1.2rem;
        font-weight: 600;
        color: var(--erp-secondary);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

        .nav-erp .nav-link.active {
            background: linear-gradient(135deg, #0d6efd 0%, #0052cc 100%);
            color: white !important;
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
        }

/* Ana Konteynır */
.card-modern-erp {
    border: none;
    border-radius: 1.5rem;
    background: var(--erp-card);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Tablo Tasarımı */
.table-modern thead th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1.25rem;
    border: none;
}

.table-modern tbody td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Mobil Sonuç Kartları */
.result-card-mobile {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    padding: 1.25rem;
    transition: all 0.2s;
}

    .result-card-mobile:active {
        transform: scale(0.98);
        background: #f8fafc;
    }

/* Rapor İkonu Kutusu */
.report-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Doktor Notu Balonu */
.note-bubble {
    background: #fdf2f8;
    color: #9d174d;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-left: 4px solid #f472b6;
    margin-top: 0.5rem;
}

/* İndirme Butonu */
.btn-download-erp {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

    .btn-download-erp:hover {
        background: var(--erp-primary);
        color: white;
        border-color: var(--erp-primary);
    }

.hover-lift {
    transition: transform 0.2s ease;
}

    .hover-lift:hover {
        transform: translateY(-3px);
    }


/* ERP Kart Tasarımı */
.erp-card {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
    background: #fff;
    overflow: hidden;
}

.erp-header {
    background: linear-gradient(135deg, var(--medical-blue) 0%, #6900cf 100%);
    padding: 2.5rem;
    color: white;
}

/* Adım Kutuları */
.step-container {
    border: 2px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    height: 100%;
}

    .step-container.active {
        border-color: var(--medical-blue);
        box-shadow: 0 0 0 4px rgba(0, 97, 242, 0.05);
    }

    .step-container.disabled {
        opacity: 0.5;
        background: #f1f5f9;
        pointer-events: none;
        border-style: dashed;
    }

.step-label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* Form Elemanları */
.form-control-erp {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s;
}

    .form-control-erp:focus {
        border-color: var(--medical-blue);
        box-shadow: none;
    }

/* Tarih Seçici Mobil Fix */
input[type="date"] {
    min-height: 50px;
    position: relative;
}

/* SAAT GRİD SİSTEMİ - İŞTE BURASI ÇOK ŞIK OLDU */
.slots-grid {
    display: initial;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 50px;
    padding: 2px;
}

.slot-item {
    border: 2px solid var(--border-color);
    background: #fff;
    border-radius: 0.75rem;
    padding: 10px 5px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--medical-blue);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .slot-item:hover {
        border-color: var(--medical-blue);
        background: var(--medical-soft);
    }

    .slot-item.active {
        background: var(--medical-success);
        color: white;
        border-color: var(--medical-success);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 172, 105, 0.3);
    }

/* Onay Butonu */
.btn-confirm {
    background: var(--medical-blue);
    color: white;
    border-radius: 1rem;
    padding: 1rem 3rem;
    font-weight: 700;
    border: none;
    transition: all 0.3s;
}

    .btn-confirm:disabled {
        background: #cbd5e1;
        transform: none;
    }

    .btn-confirm:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 97, 242, 0.4);
    }

@media (max-width: 768px) {
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .erp-header {
        padding: 1.5rem;
    }
}
/* Modern Navigasyon */
.nav-modern {
    background: #fff;
    padding: 0.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
}

    .nav-modern .nav-link {
        border-radius: 1rem;
        padding: 0.8rem 1.2rem;
        font-weight: 600;
        color: #64748b;
        transition: all 0.3s;
    }

        .nav-modern .nav-link.active {
            background: var(--hosp-primary);
            color: white;
            box-shadow: 0 4px 12px rgba(0, 97, 242, 0.2);
        }

/* Kart ve Tablo Tasarımı */
.erp-container {
    background: #fff;
    border-radius: 1.5rem;
    border: none;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.table thead th {
    background: #f1f5f9;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #475569;
    border: none;
    padding: 1.25rem;
}

/* Mobildeki "Bilet" Tasarımı */
.mobile-appointment-card {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.card-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

.status-completed {
    background-color: var(--hosp-success);
}

.status-pending {
    background-color: var(--hosp-warning);
}

.status-cancelled {
    background-color: var(--hosp-danger);
}

.badge-soft {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
}

.badge-soft-success {
    background: #dcfce7;
    color: #15803d;
}

.badge-soft-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-soft-danger {
    background: #fee2e2;
    color: #b91c1c;
}

/* Buton Efektleri */
.btn-action {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s;
}

    .btn-action:hover {
        transform: translateY(-2px);
    }

.hover-lift {
    transition: transform 0.2s;
}

    .hover-lift:hover {
        transform: translateY(-3px);
    }

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Navigasyon Stili */
.nav-erp-container {
    background: white;
    border-radius: 1.25rem;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

    .nav-erp-container .nav-link {
        border-radius: 0.85rem;
        padding: 0.75rem 1.25rem;
        font-weight: 600;
        color: #64748b;
        transition: 0.3s;
    }

        .nav-erp-container .nav-link.active {
            background: var(--erp-primary);
            color: white;
        }

/* Profil Kartı */
.profile-card {
    border: none;
    border-radius: 2rem;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Profil Fotoğraf Bölümü */
.profile-header-bg {
    height: 120px;
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
}

.profile-avatar-wrapper {
    margin-top: -60px;
    position: relative;
    display: inline-block;
}

.profile-avatar-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.avatar-edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--erp-primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    cursor: pointer;
    transition: 0.2s;
}

    .avatar-edit-badge:hover {
        transform: scale(1.1);
        background: #4338ca;
    }

/* Form Elemanları */
.erp-input-group {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    border: 2px solid transparent;
    transition: 0.2s;
}

    .erp-input-group:focus-within {
        background: white;
        border-color: var(--erp-primary);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    }

.erp-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
    display: block;
}

.erp-control {
    border: none;
    background: transparent;
    padding: 0;
    font-weight: 600;
    color: var(--erp-text);
    width: 100%;
}

    .erp-control:focus {
        outline: none;
    }

/* Modern Buton */
.btn-erp-save {
    background: var(--erp-primary);
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

    .btn-erp-save:hover {
        background: #4338ca;
        transform: translateY(-2px);
        box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4);
    }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .profile-card {
        border-radius: 1.25rem;
    }

    .nav-erp-container {
        border-radius: 1rem;
    }
}

.navbar {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

/* Modern Navbar Styling */
.navbar-custom {
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 80px;
    transition: transform 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
        background: rgba(79, 70, 229, 0.05);
    }

/* Profile Dropdown Style */
.user-profile-nav {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        margin-top: 15px;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        margin-bottom: 10px;
    }

    .language-mobile-fix {
        order: -1; /* Dil seçiciyi üste al */
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #f1f5f9;
    }
}