/**
 * Diyetisyen Takip Sistemi - Ana Stil Dosyası
 * Bootstrap 5 tabanlı özelleştirilmiş tasarım
 */

/* ========================================
   CSS DEĞİŞKENLERİ
   ======================================== */

:root {
    --primary-color: #2ecc71;
    --primary-hover: #27ae60;
    --secondary-color: #3498db;
    --secondary-hover: #2980b9;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   GENEL YAPILANDIRMA
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Mobile global fixes */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.wrapper { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.content-wrapper { word-wrap: break-word; overflow-wrap: anywhere; }
.custom-card-body { overflow-x: auto; }
.input-group .form-control { min-width: 0; }

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   LOGIN SAYFASI
   ======================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.login-left p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

.login-right {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo img {
    max-width: 180px;
    height: auto;
}

.login-form h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    height: 50px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.15);
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.btn-login {
    height: 50px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000; /* Below modals but above content */
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    max-width: 160px;
    height: auto;
}

.sidebar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.sidebar-menu {
    padding: 20px 15px;
}

.sidebar-menu .nav-link {
    padding: 12px 15px;
    color: var(--sidebar-text);
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-menu .nav-link:hover {
    background-color: var(--sidebar-hover);
    padding-left: 20px;
}

.sidebar-menu .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-menu .nav-link i {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.sidebar-user {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    margin: 0;
}

.sidebar-user-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    margin-left: 260px;
    flex: 1;
    transition: all 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1; /* below sidebar and overlay */
}

.navbar-top {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.navbar-search {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    position: relative;
    font-size: 1.3rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.notification-icon:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.user-dropdown:hover {
    background: #f5f5f5;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Avatar boyutları */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.avatar-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    margin-top: 5px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 10px 0 0 0;
}

/* ========================================
   DASHBOARD CARDS
   ======================================== */

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.stats-icon.primary {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
}

.stats-icon.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.stats-icon.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.stats-icon.danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.stats-icon.info {
    background: rgba(22, 160, 133, 0.1);
    color: var(--info-color);
}

.stats-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 5px 0;
}

.stats-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.stats-change.positive {
    color: var(--success-color);
}

.stats-change.negative {
    color: var(--danger-color);
}

/* ========================================
   CARDS & PANELS
   ======================================== */

.custom-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.custom-card-header {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.custom-card-body {
    padding: 25px;
}

/* ========================================
   TABLES
   ======================================== */

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.custom-table {
    background: white;
}

.custom-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.custom-table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.custom-table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action.edit {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.btn-action.edit:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-action.delete {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.btn-action.delete:hover {
    background: var(--danger-color);
    color: white;
}

.btn-action.view {
    background: rgba(22, 160, 133, 0.1);
    color: var(--info-color);
}

.btn-action.view:hover {
    background: var(--info-color);
    color: white;
}

/* ========================================
   FORMS
   ======================================== */

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    border: 2px solid #e0e0e0;
    border-right: none;
    background: #f8f9fa;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.85rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success-color);
}

.status-inactive {
    background: rgba(149, 165, 166, 0.15);
    color: #95a5a6;
}

.status-pending {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning-color);
}

/* ========================================
   PROGRESS BARS
   ======================================== */

.progress {
    height: 10px;
    border-radius: 10px;
    background: #e0e0e0;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ========================================
   CHARTS
   ======================================== */

.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    z-index: 9999 !important;
}

.modal-dialog {
    z-index: 10000 !important;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10001 !important; /* Above everything */
}

.modal-backdrop {
    display: none !important;
}

.modal-backdrop.show {
    display: none !important;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
    color: #2c3e50;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}

/* ========================================
   PROFILE PAGE
   ======================================== */

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 15px;
}

.profile-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.profile-info-item {
    text-align: center;
}

.profile-info-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-info-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   WEIGHT TRACKER
   ======================================== */

.weight-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weight-date {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.weight-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.weight-change {
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 10px;
}

/* ========================================
   CALENDAR
   ======================================== */

.calendar-wrapper {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.appointment-item {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.appointment-time {
    font-weight: 600;
    color: var(--primary-color);
}

.appointment-patient {
    font-weight: 500;
    margin-top: 5px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .sidebar {
        left: -260px;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content { margin-left: 0; position: relative; z-index: 1; }
    
    .navbar-toggle {
        display: block;
    }
    
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        padding: 40px;
    }
    
    .login-right {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stats-value {
        font-size: 1.5rem;
    }
    
    .navbar-search {
        display: none;
    }
    
    .profile-info {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-muted {
    color: #7f8c8d !important;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.gap-3 {
    gap: 1rem;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   NOTIFICATION LIST
   ======================================== */

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    gap: 20px;
}

.notification-item.unread {
    border-left: 4px solid var(--primary-color);
    background: #f8fffe;
}

.notification-item.read {
    opacity: 0.8;
    background: #f8f9fa;
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.notification-content {
    flex: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-time {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.notification-message {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.notification-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.notification-actions .btn {
    min-width: 35px;
    height: 35px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.notification-actions .btn-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.notification-actions .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.notification-actions .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.notification-actions .btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.notification-actions .btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* ========================================
   MOBILE ACCOUNT CARDS
   ======================================== */

.mobile-account-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-account-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.patient-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.patient-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.account-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.account-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.mobile-card-body {
    padding: 15px;
}

.amount-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.amount-row:last-child {
    margin-bottom: 0;
}

.amount-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amount-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.due-date {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.due-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.due-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .notification-item {
        flex-direction: column;
        gap: 15px;
    }
    
    
    .notification-actions {
        flex-direction: row;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .notification-actions .btn {
        min-width: auto;
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .notification-header {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Mobile account cards responsive adjustments */
    .mobile-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .account-actions {
        justify-content: flex-end;
    }
    
    .amount-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .amount-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .amount-label {
        font-size: 0.9rem;
    }
    
    .amount-value {
        font-size: 1.1rem;
    }
}

/* ========================================
   MOBILE PATIENT CARDS (REPORTS)
   ======================================== */

.mobile-patient-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-patient-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-patient-card .mobile-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.patient-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.rank-badge {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    min-width: 35px;
    text-align: center;
}

.patient-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.weight-loss {
    flex-shrink: 0;
}

.mobile-patient-card .mobile-card-body {
    padding: 15px;
}

.weight-info {
    display: flex;
    gap: 15px;
}

.weight-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weight-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weight-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .mobile-patient-card .mobile-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .patient-rank {
        justify-content: space-between;
    }
    
    .weight-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .weight-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .weight-label {
        font-size: 0.9rem;
    }
    
    .weight-value {
        font-size: 1.1rem;
    }
}

/* ========================================
   MOBILE PATIENT LIST CARDS
   ======================================== */

.mobile-patient-list-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-patient-list-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-patient-list-card .mobile-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.patient-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.patient-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.patient-details {
    flex: 1;
}

.patient-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.patient-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.patient-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.patient-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.mobile-patient-list-card .mobile-card-body {
    padding: 15px;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #666;
    width: 16px;
    text-align: center;
}

.current-status {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.weight-info, .bmi-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.weight-info:last-child, .bmi-info:last-child {
    margin-bottom: 0;
}

.weight-label, .bmi-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.weight-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.progress-info {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.stats-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}

.stat-item i {
    color: #2ecc71;
}

@media (max-width: 768px) {
    .mobile-patient-list-card .mobile-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .patient-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .patient-actions {
        justify-content: flex-end;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .current-status {
        padding: 10px;
    }
}

/* ========================================
   MOBILE FOOD CARDS
   ======================================== */

.category-header {
    background: #f8f9fa;
    padding: 12px 15px;
    margin: 15px 0 10px 0;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
    font-size: 1rem;
    color: #2c3e50;
}

.mobile-food-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-food-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-food-card .mobile-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.food-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.food-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.mobile-food-card .mobile-card-body {
    padding: 15px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.nutrition-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.nutrition-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nutrition-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.nutrition-value.calories {
    color: #f39c12;
    font-weight: 700;
}

@media (max-width: 768px) {
    .mobile-food-card .mobile-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .food-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .nutrition-item {
        padding: 8px;
    }
    
    .nutrition-label {
        font-size: 0.75rem;
    }
    
    .nutrition-value {
        font-size: 0.9rem;
    }
}

/* ========================================
   MOBILE PAYMENT CARDS
   ======================================== */

.mobile-payment-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-payment-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-payment-card .mobile-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.payment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-date {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.payment-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}

.payment-method {
    flex-shrink: 0;
}

.mobile-payment-card .mobile-card-body {
    padding: 15px;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 60px;
}

.detail-value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

@media (max-width: 768px) {
    .mobile-payment-card .mobile-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .payment-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .payment-amount {
        font-size: 1.1rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .detail-value {
        text-align: left;
    }
}

/* ========================================
   MOBILE WEIGHT CARDS
   ======================================== */

.mobile-weight-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-weight-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-weight-card .mobile-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.weight-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weight-date {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.weight-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.weight-change {
    flex-shrink: 0;
}

.mobile-weight-card .mobile-card-body {
    padding: 15px;
}

.weight-notes {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notes-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.notes-value {
    font-size: 0.9rem;
    color: #2c3e50;
}

.mobile-weight-card .mobile-card-footer {
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

/* ========================================
   MOBILE MEASUREMENT CARDS
   ======================================== */

.mobile-measurement-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-measurement-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-measurement-card .mobile-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.measurement-date {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.mobile-measurement-card .mobile-card-body {
    padding: 15px;
}

.measurement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.measurement-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.measurement-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.measurement-value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

/* ========================================
   MOBILE APPOINTMENT CARDS
   ======================================== */

.mobile-appointment-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-appointment-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mobile-appointment-card .mobile-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.appointment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.appointment-date {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.appointment-time {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.appointment-status {
    flex-shrink: 0;
}

.mobile-appointment-card .mobile-card-body {
    padding: 15px;
}

.appointment-notes {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notes-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.notes-value {
    font-size: 0.9rem;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .mobile-weight-card .mobile-card-header,
    .mobile-measurement-card .mobile-card-header,
    .mobile-appointment-card .mobile-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .weight-info,
    .appointment-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .weight-value {
        font-size: 1.1rem;
    }
    
    .measurement-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .measurement-item {
        padding: 6px;
    }
    
    .measurement-label {
        font-size: 0.75rem;
    }
    
    .measurement-value {
        font-size: 0.85rem;
    }
}

/* ========================================
   FOOD DATABASE STYLES
   ======================================== */

.food-list {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

.category-header {
    background: #e9ecef;
    padding: 8px 12px;
    margin: 10px 0 5px 0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #495057;
    border-left: 4px solid #007bff;
}

.food-item {
    margin-bottom: 8px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.food-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.food-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.food-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.food-nutrition {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nutrition-item {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nutrition-item i {
    font-size: 0.9rem;
}

/* Seçilen Besinler */
.selected-food-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.selected-food-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.selected-food-info {
    flex: 1;
}

.selected-food-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.selected-food-nutrition {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nutrition-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.nutrition-badge.calories {
    background: #ffe6e6;
    color: #d63384;
}

.nutrition-badge.protein {
    background: #e6f3ff;
    color: #0d6efd;
}

.nutrition-badge.carbs {
    background: #fff3cd;
    color: #fd7e14;
}

.nutrition-badge.fat {
    background: #d1e7dd;
    color: #198754;
}

.nutrition-badge.fiber {
    background: #f8d7da;
    color: #dc3545;
}

.remove-food {
    margin-left: 10px;
    flex-shrink: 0;
}

/* Toplam Besin Değerleri */
.total-nutrition-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.total-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.total-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.total-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.total-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.total-value.calories {
    color: #d63384;
}

.total-value.protein {
    color: #0d6efd;
}

.total-value.carbs {
    color: #fd7e14;
}

.total-value.fat {
    color: #198754;
}

.total-value.fiber {
    color: #dc3545;
}

@media (max-width: 768px) {
    .food-nutrition {
        flex-direction: column;
        gap: 6px;
    }
    
    .nutrition-item {
        font-size: 0.75rem;
    }
    
    .selected-food-nutrition {
        flex-direction: column;
        gap: 6px;
    }
    
    .nutrition-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .total-nutrition-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .total-item {
        padding: 10px;
    }
    
    .total-label {
        font-size: 0.8rem;
    }
    
    .total-value {
        font-size: 1rem;
    }
}

/* ========================================
   MESSAGE CHAT STYLES
   ======================================== */

.chat-container {
    height: calc(100vh - 180px);
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.chat-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 0; /* Flexbox scroll için gerekli */
}

.chat-input {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-bottom: 80px;
}

.message-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message-item.sender {
    align-items: flex-end;
}

.message-item.receiver {
    align-items: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
}

.message-item.sender .message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-item.receiver .message-bubble {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
    padding: 0 8px;
}

.message-item.sender .message-time {
    text-align: right;
}

.message-item.receiver .message-time {
    text-align: left;
}

.message-status {
    display: inline-block;
    margin-left: 5px;
}

.message-status.read {
    color: var(--primary-color);
}

.chat-input-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

.chat-input-form textarea {
    flex: 1;
    resize: none;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.4;
    max-height: 100px;
    min-height: 44px;
    transition: all 0.3s ease;
}

.chat-input-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.15);
    outline: none;
}

.chat-send-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.chat-send-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Scroll bar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Empty state */
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    text-align: center;
}

.chat-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.chat-empty h4 {
    margin-bottom: 10px;
    color: #999;
}

.chat-empty p {
    margin: 0;
    color: #aaa;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 120px);
        max-height: calc(100vh - 120px);
    }
    
    .chat-header {
        padding: 12px 15px;
    }
    
    .chat-messages {
        padding: 15px;
        padding-bottom: 20px; /* Alt boşluk ekle */
    }
    
    .chat-input {
        padding: 12px 15px;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #e9ecef;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 10px 14px;
    }
    
    .chat-input-form textarea {
        font-size: 16px; /* iOS zoom önleme */
        min-height: 44px; /* Touch target için */
    }
    
    .chat-send-btn {
        width: 44px;
        height: 44px; /* Touch target için */
    }
}

/* ========================================
   ADMIN PROFILE STYLES
   ======================================== */

.profile-photo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-photo-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #007bff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-photo-overlay:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.stat-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.stat-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Form validations */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* Photo preview */
#photoPreview {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-photo {
        width: 70px;
        height: 70px;
    }
    
    .profile-photo-overlay {
        width: 24px;
        height: 24px;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-item i {
        font-size: 1rem;
        width: 20px;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-value {
        font-size: 0.85rem;
    }
}
