/* ==========================================================================
   Öğrenci Portalı - Canlı, Aydınlık & Özgün Tasarım Sistemi
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fredoka:wght@500;600;700&display=swap');

:root {
    --font-heading: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Aydınlık & Kurumsal Renk Paleti */
    --brand-blue: #0284c7;
    --brand-blue-dark: #0369a1;
    --brand-red: #ef4444;
    --brand-red-hover: #dc2626;
    --brand-yellow: #f59e0b;
    --brand-green: #10b981;
    
    --bg-page: #f0f5fa;
    --bg-card: #ffffff;
    --bg-subtle: #f8fafc;
    
    --text-dark: #0f172a;
    --text-slate: #334155;
    --text-muted: #64748b;
    
    --border-light: #e2e8f0;
    --border-focus: #38bdf8;
    
    --shadow-soft: 0 10px 30px rgba(2, 132, 199, 0.06), 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-card: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.08);
    --shadow-btn: 0 8px 20px rgba(239, 68, 68, 0.35);

    --radius-card: 28px;
    --radius-btn: 16px;
    --radius-pill: 999px;
}

/* Reset & Global Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.05) 0%, transparent 60%);
    background-attachment: fixed;
}

/* SSO Konteynır */
.portal-container {
    max-width: 520px;
    width: 92%;
    margin: auto;
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

/* Beyaz Kart Tasarımı */
.portal-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    border: 1px solid #ffffff;
    animation: cardAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Üst Dekoratif Çizgi */
.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-yellow), var(--brand-red));
    border-radius: 0 0 6px 6px;
}

/* Logolar Alanı */
.logos-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--bg-subtle);
    padding: 14px 28px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.logos-container img {
    height: 46px;
    object-fit: contain;
}

.logo-divider {
    width: 2px;
    height: 30px;
    background-color: var(--border-light);
    border-radius: 2px;
}

/* Başlık Metinleri */
.portal-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.portal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Öğrenci Karşılama Kartı */
.student-welcome-banner {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1px solid #7dd3fc;
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
}

.student-avatar {
    width: 48px;
    height: 48px;
    background: #0284c7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
    flex-shrink: 0;
}

.student-info-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #0369a1;
    font-weight: 700;
}

.student-info-meta p {
    font-size: 0.85rem;
    color: #0284c7;
    font-weight: 600;
}

/* Bilgi Listesi (Kutular) */
.info-boxes-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.info-box-item {
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-light);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: all 0.2s ease;
}

.info-box-item:hover {
    border-color: var(--border-focus);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.05);
}

.info-box-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.box-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.box-icon.blue { background: #e0f2fe; color: #0284c7; }
.box-icon.amber { background: #fef3c7; color: #d97706; }
.box-icon.green { background: #d1fae5; color: #059669; }

.box-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.box-text-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box-text-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.password-highlight {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #d97706;
    letter-spacing: 2px;
}

/* Ana Giriş Butonu */
.btn-abcmouse-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-btn);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-abcmouse-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.5);
    color: #ffffff;
}

.btn-small-toggle {
    padding: 6px 12px;
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-slate);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small-toggle:hover {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

/* Mağaza İndirme Butonları */
.store-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px dashed var(--border-light);
}

.store-section-title {
    font-size: 0.88rem;
    color: var(--text-slate);
    font-weight: 600;
    margin-bottom: 14px;
}

.store-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.store-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.store-card:hover {
    border-color: var(--brand-blue);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.1);
}

.store-card svg {
    width: 26px;
    height: 26px;
    fill: #0284c7;
}

.store-card-info span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
}

.store-card-info strong {
    font-size: 0.88rem;
    font-weight: 700;
}

/* Yüzen WhatsApp Düğmesi */
.whatsapp-friendly-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    padding: 12px 20px;
    background: #25d366;
    color: white;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.whatsapp-friendly-float:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-friendly-float svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* ==========================================================================
   Admin Panel Özel Aydınlık Form & Buton Elemanları
   ========================================================================== */

.admin-layout {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: #0f172a;
    color: #ffffff;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand img {
    height: 38px;
    border-radius: 8px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 14px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-link.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.main-content {
    flex: 1;
    padding: 36px 44px;
    background: #f8fafc;
    overflow-y: auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid #e2e8f0;
}

/* Admin Form İnput & Select Elemanları */
.admin-input {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.admin-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15) !important;
}

.admin-select {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    outline: none !important;
    cursor: pointer !important;
}

.admin-select:focus {
    border-color: #0284c7 !important;
}

/* Admin Özel Buton Stilleri */
.btn-admin-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
}

.btn-admin-primary:hover {
    background: #0369a1;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.btn-admin-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-admin-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
    color: #ffffff;
}

.btn-admin-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1.5px solid #0284c7;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-admin-outline:hover {
    background: #e0f2fe;
    color: #0369a1;
    transform: translateY(-2px);
}

.btn-tbl-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1.5px solid #7dd3fc;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-tbl-preview:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-tbl-update {
    padding: 6px 12px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tbl-update:hover {
    background: #0284c7;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}

.stat-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 6px;
    color: var(--brand-blue-dark);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    font-size: 0.92rem;
    box-shadow: var(--shadow-soft);
}

.data-table th, .data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.data-table th {
    background: #f1f5f9;
    color: #334155;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.data-table tr:hover td {
    background: #f8fafc;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-success { background: #d1fae5; color: #047857; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }

/* Animasyon */
@keyframes cardAppear {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
