/* css/styles.css */
:root {
    --primary-color: #0f62fe;
    --primary-hover: #0353e9;
    --secondary-color: #f4f4f4;
    --text-main: #161616;
    --text-muted: #525252;
    --bg-main: #ffffff;
    --bg-secondary: #f4f4f4;
    --border-color: #e0e0e0;
    --danger: #da1e28;
    --success: #24a148;
    --warning: #f1c21b;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-secondary);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    background-color: var(--bg-main);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a.nav-item {
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a.nav-item:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

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

.btn-block {
    width: 100%;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.05) 0%, rgba(15, 98, 254, 0.1) 100%);
    padding: 5rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-search {
    display: flex;
    gap: 1rem;
    background: var(--bg-main);
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

/* Specializations */
.spec-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.spec-card {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

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

.spec-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Doctor Cards */
.doc-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.doc-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.doc-info {
    padding: 1.5rem;
}

.doc-specialty {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.doc-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning);
    margin: 0.5rem 0;
}

.doc-rating span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.doc-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.doc-price {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.badge-success { background: #e8f5e9; color: var(--success); }
.badge-warning { background: #fff8e1; color: var(--warning); }
.badge-danger { background: #ffebee; color: var(--danger); }

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-2 { padding: 2rem; }
.d-none { display: none !important; }

/* Dashboard Utilities */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 70px);
}
.sidebar {
    background: var(--bg-main);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
}
.sidebar-link {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-main);
    transition: var(--transition);
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(15, 98, 254, 0.05);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}
.dashboard-content {
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-search {
        flex-direction: column;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* Add mobile menu later if time allows */
    }
}
