/* ==================== Reset ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tahoma', sans-serif; }

/* ==================== Body ==================== */
body { background: linear-gradient(135deg, #e0f7fa, #e8eaf6); min-height: 100vh; padding: 20px; }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Tahoma', 'Segoe UI', sans-serif;
 }

body {
    background: linear-gradient(135deg, #e0f7fa 0%, #e8eaf6 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    position: relative;
}

header h1 {
    color: #00796b;
    font-size: 26px;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 15px;
}

.admin-link {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #f0f7f6;
    color: #00796b;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid #b2dfdb;
}

.admin-link:hover {
    background: #00796b;
    color: #fff;
    border-color: #00796b;
}

.search-box {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.search-box input {
    width: 100%;
    max-width: 420px;
    padding: 12px 18px;
    border: 2px solid #b2dfdb;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: #00796b;
    box-shadow: 0 0 0 3px rgba(0,121,107,0.1);
}

.city-selector {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.city-selector h3 {
    font-size: 16px;
    color: #00796b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-btn {
    padding: 10px 20px;
    background: #f0f7f6;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.city-btn:hover {
    background: #e0f2f1;
    border-color: #b2dfdb;
    transform: translateY(-2px);
}

.city-btn.active {
    background: #00796b;
    color: #fff;
    border-color: #00796b;
    box-shadow: 0 4px 12px rgba(0,121,107,0.3);
}

.city-btn .city-count {
    font-size: 11px;
    background: rgba(0,0,0,0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}

.city-btn.active .city-count {
    background: rgba(255,255,255,0.25);
}

.main-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #fff;
    padding: 8px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.main-tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.main-tab:hover {
    background: #f0f7f6;
    color: #00796b;
}

.main-tab.active {
    background: #00796b;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,121,107,0.3);
}

.main-tab .tab-icon {
    font-size: 20px;
}

.section { display: none; }
.section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.category-btn {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 18px 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    font-size: 14px;
    font-weight: bold;
    color: #444;
}

.category-btn .icon {
    font-size: 30px;
    display: block;
    margin-bottom: 8px;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,121,107,0.15);
    border-color: #b2dfdb;
}

.category-btn.active {
    background: #00796b;
    color: #fff;
    border-color: #00796b;
}

.section.labs .category-btn.active {
    background: #7b1fa2;
    border-color: #7b1fa2;
}

.section.labs .category-btn:hover {
    border-color: #ce93d8;
    box-shadow: 0 6px 20px rgba(123,31,162,0.15);
}

.results-title {
    font-size: 18px;
    color: #00796b;
    margin-bottom: 15px;
    padding-right: 12px;
    border-right: 4px solid #00796b;
}

.section.labs .results-title {
    color: #7b1fa2;
    border-right-color: #7b1fa2;
}

.doctors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.doctor-card {
    background: #fff;
    border-radius: 15px;
    padding: 22px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
    transition: all 0.3s;
    border-top: 5px solid #00796b;
    animation: fadeIn 0.4s ease;
    position: relative;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,121,107,0.15);
}

.section.labs .doctor-card {
    border-top-color: #7b1fa2;
}

.section.labs .doctor-card:hover {
    box-shadow: 0 8px 25px rgba(123,31,162,0.15);
}

.card-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.card-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0f2f1;
    flex-shrink: 0;
}

.section.labs .card-avatar {
    border-color: #f3e5f5;
}

.card-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00796b, #4db6ac);
    color: #fff;
    font-weight: bold;
    font-size: 26px;
}

.section.labs .card-avatar.placeholder {
    background: linear-gradient(135deg, #7b1fa2, #ba68c8);
}

.card-title-area {
    flex: 1;
    min-width: 0;
}

.doctor-card h3 {
    color: #00796b;
    font-size: 17px;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.section.labs .doctor-card h3 {
    color: #7b1fa2;
}

.doctor-card .city-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff3e0;
    color: #e65100;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
}

.doctor-card .specialty {
    display: inline-block;
    background: #e0f2f1;
    color: #00796b;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}

.section.labs .doctor-card .specialty {
    background: #f3e5f5;
    color: #7b1fa2;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.info-row .label-icon {
    font-size: 16px;
    min-width: 20px;
}

.info-row a {
    color: #00796b;
    text-decoration: none;
    font-weight: bold;
}

.section.labs .info-row a {
    color: #7b1fa2;
}

.info-row a:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    color: #888;
    font-size: 16px;
    grid-column: 1/-1;
}

.empty-state .big-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 15px;
}

/* ==================== فوتر ==================== */
.site-footer {
    text-align: center;
    padding: 25px 15px;
    margin-top: 40px;
    color: #888;
    font-size: 13px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.site-footer p {
    margin: 0;
}

.site-footer .footer-brand {
    color: #00796b;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    header h1 { font-size: 18px; }
    .categories { grid-template-columns: repeat(2, 1fr); }
    .doctors-list { grid-template-columns: 1fr; }
    .main-tab { font-size: 14px; padding: 12px 8px; }
    .city-btn { padding: 8px 14px; font-size: 13px; }
    .admin-link { position: static; display: inline-block; margin-bottom: 15px; }
}

