/* ============================================
   OkulTek - Ana Stil Dosyası
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
}

/* ── Sidebar ──────────────────────────────── */
.sidebar {
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0 16px;
}

.logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text-mini {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.sidebar .ant-menu-item a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .ant-menu-item-selected a {
    color: #fff;
}

/* ── Header ───────────────────────────────── */
.header {
    background: #fff !important;
    padding: 0 24px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 99;
    height: 64px;
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-dropdown:hover {
    background: #f5f5f5;
}

.user-name {
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Content ──────────────────────────────── */
.content {
    margin: 24px;
    min-height: calc(100vh - 64px - 70px - 48px);
}

/* ── Footer ───────────────────────────────── */
.footer {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 16px;
}

/* ── Login Page ───────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #01579b 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a237e;
    margin-top: 12px;
    letter-spacing: 2px;
}

.login-logo p {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

/* ── Stat Cards ───────────────────────────── */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* ── Page Header ──────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

/* ── Tables ───────────────────────────────── */
.ant-table {
    border-radius: 12px;
    overflow: hidden;
}

.ant-table-thead > tr > th {
    background: #fafafa !important;
    font-weight: 600;
    color: #333;
}

/* ── Avatar ───────────────────────────────── */
.student-avatar, .staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e8e8;
}

.avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1677ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* ── Modal ────────────────────────────────── */
.ant-modal-header {
    border-radius: 12px 12px 0 0;
}

.ant-modal-content {
    border-radius: 12px;
}

/* ── Cards ────────────────────────────────── */
.ant-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Tags ─────────────────────────────────── */
.ant-tag {
    border-radius: 6px;
}

/* ── Buttons ──────────────────────────────── */
.ant-btn {
    border-radius: 8px;
}

/* ── Select Role Page ─────────────────────── */
.role-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.role-card:hover {
    border-color: #1677ff;
    box-shadow: 0 4px 16px rgba(22,119,255,0.2);
    transform: translateY(-4px);
}

.role-card i {
    font-size: 40px;
    color: #1677ff;
}

.role-card h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
    .content { margin: 12px; }
    .header-center { display: none; }
    .user-name { display: none; }
    .login-card { margin: 16px; padding: 32px 24px; }
}
