/* 
   Globalni element koji se koristi na svim stranicama preko
   header.php (avatar u dropdown meniju korisnika)
 */
.header-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Stranica: index.php (lista dostupnih nastavnika) */
:root {
    --primary: #0d6efd;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --border: #e9ecef;
}

body.page-index {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text-dark);
}

.tutor-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.tutor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e7f1ff;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.rating-star {
    color: #ffc107;
}

.btn-view-slots {
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-weight: 500;
    padding: 6px 16px;
    transition: all 0.2s ease;
}

.btn-view-slots:hover {
    background-color: #0b5ed7;
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

/* ------------------------------------------------------------
   Stranica: login.php
   ------------------------------------------------------------ */
body.page-login {
    background-color: #f4f5f7;
    font-family: 'Arial', sans-serif;
}

.login-card {
    max-width: 400px;
    margin: 100px auto;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Stranica: edit_profile.php */
body.page-edit-profile {
    background-color: #f8f9fa;
    font-family: system-ui, sans-serif;
}

.upload-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.625rem;
    padding: 2.5rem;
    max-width: 500px;
    margin: 2.5rem auto;
}

.current-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6366f1;
}

.placeholder-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #6366f1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   Stranica: tutor_profile.php
   Napomena: promenljive imaju prefiks --tp- da ne bi došlo do
   konflikta sa :root promenljivama definisanim za index.php
   (npr. --primary ima različitu vrednost na svakoj stranici)
   ------------------------------------------------------------ */
:root {
    --tp-background: #f8f9fa;
    --tp-card-bg: #ffffff;
    --tp-foreground: #030213;
    --tp-primary: #030213;
    --tp-muted-foreground: #717182;
    --tp-accent: #f3f3f5;
    --tp-border: rgba(3, 2, 19, 0.08);
    --tp-radius-lg: 0.625rem;
    --tp-success-bg: #e6f7ed;
    --tp-success-color: #1f8b4c;
}

body.page-tutor-profile {
    background-color: var(--tp-background);
    color: var(--tp-foreground);
    font-family: system-ui, -apple-system, sans-serif;
}

.btn-back {
    color: var(--tp-muted-foreground);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--tp-primary);
}

.profile-main-card {
    background-color: var(--tp-card-bg);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.big-avatar {
    width: 80px;
    height: 80px;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.big-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.main-category-tag {
    background-color: var(--tp-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
}

.meta-text {
    color: var(--tp-muted-foreground);
    font-size: 0.9rem;
}

.subject-badge-pill {
    background-color: var(--tp-accent);
    color: var(--tp-primary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.slots-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.slot-row-item {
    background-color: var(--tp-card-bg);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
    cursor: pointer;
}

.slot-row-item:hover {
    border-color: var(--tp-primary);
}

.slot-row-item.selected {
    border: 2px solid var(--tp-primary) !important;
    background-color: rgba(3, 2, 19, 0.01);
}

.status-available-badge {
    background-color: var(--tp-success-bg);
    color: var(--tp-success-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
}

.sticky-booking-panel {
    background-color: var(--tp-card-bg);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
    padding: 2rem;
    position: sticky;
    top: 2rem;
}

.price-huge {
    font-size: 2.25rem;
    font-weight: 800;
    color: #2563eb;
}

.duration-pricing-list {
    font-size: 0.9rem;
    color: var(--tp-foreground);
}

.duration-pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--tp-border);
}

.btn-book-action {
    background-color: var(--tp-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--tp-radius-lg);
    width: 100%;
    padding: 0.8rem;
    border: none;
    transition: background-color 0.2s;
}

.btn-book-action:hover {
    background-color: #161527;
}