@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d1045;
    --secondary-color: #1a1d5c;
    --accent-color: #3b82f6; /* Canlı mavi vurgular için */
    --text-color: #333;
    --bg-color: #f4f7fe;
    --white: #ffffff;
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius: 20px; /* Oval kenarlar */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: var(--white);
    position: fixed;
    height: 100%;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 100;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    padding: 20px 10px;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu ul li {
    margin-bottom: 8px;
}

.sidebar-menu ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: var(--radius);
    transition: 0.3s;
    font-size: 0.9rem;
}

.sidebar-menu ul li a:hover, .sidebar-menu ul li a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sidebar-menu ul li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Ana İçerik Alanı */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    height: var(--header-height);
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: var(--shadow);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    margin: 10px 20px 0 20px;
}

.header-left h2 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    text-align: right;
}

.user-info span {
    display: block;
    font-size: 0.8rem;
    color: #777;
}

.user-info strong {
    color: var(--primary-color);
}

/* Dashboard Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 30px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card h3 {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card .icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2.5rem;
    color: rgba(13, 16, 69, 0.05);
}

/* Tablolar ve Bölümler */
.content-section {
    padding: 0 30px 30px 30px;
}

.section-title {
    margin-bottom: 20px;
    color: var(--primary-color);
}



/* --- KLİNİK KARTLARI (clinics.php) --- */
.clinic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

.clinic-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 16, 69, 0.1);
}

.clinic-img-area {
    height: 140px;
    background-color: #eef2ff;
    position: relative;
    background-size: cover;
    background-position: center;
}

.clinic-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    position: absolute;
    bottom: -30px;
    left: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 3px solid white;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.clinic-body {
    padding: 35px 20px 20px 20px;
}

.clinic-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.clinic-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clinic-stats {
    display: flex;
    justify-content: space-between;
    background: #f8f9fc;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    font-size: 0.8rem;
}
.stat-item b {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
}

.clinic-actions {
    display: flex;
    gap: 10px;
}

.btn-manage {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-manage:hover { background: #1a1d5c; }

.btn-edit {
    width: 40px;
    background: #eef2ff;
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-edit:hover { background: #dbeafe; }

/* Progress Bar */
.quota-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}
.quota-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 4px;
}



/* --- EDIT PAGE TABS --- */
.tab-container { background: white; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.tab-header { display: flex; background: #f8f9fc; border-bottom: 1px solid #eee; }
.tab-link {
    padding: 15px 25px; cursor: pointer; font-weight: 600; color: #777; transition: 0.3s; border-bottom: 3px solid transparent;
}
.tab-link:hover { background: #eef2ff; color: var(--primary-color); }
.tab-link.active { color: var(--primary-color); border-bottom-color: var(--primary-color); background: white; }

.tab-content { display: none; padding: 30px; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #444; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 10px; background: #fcfcfc; transition: 0.3s; }
.form-control:focus { border-color: var(--primary-color); background: white; box-shadow: 0 0 0 3px rgba(13, 16, 69, 0.1); }

/* Checkbox Grid */
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.checkbox-item {
    display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #eee; border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.checkbox-item:hover { background: #f0f4ff; border-color: #cbd5e0; }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--primary-color); }

/* Image Upload Preview */
.img-preview-box {
    width: 120px; height: 120px; border-radius: 15px; border: 2px dashed #ccc;
    display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; cursor: pointer; background: #f9f9f9;
}
.img-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-box:hover { border-color: var(--primary-color); }








