/* ================================
   Birebir Deneme Takip - Modern Styles
   ================================ */

/* Color Palette - Soft & Modern */
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B85FF;
    --secondary: #4ECDC4;
    --secondary-dark: #3EBAB1;
    --accent: #FF6B6B;
    --accent-dark: #EE5A52;
    --success: #51CF66;
    --warning: #FFD93D;
    --danger: #FF6B6B;

    --bg-light: #F7F9FC;
    --bg-white: #FFFFFF;
    --bg-gray: #EDF2F7;

    --text-dark: #2D3748;
    --text-normal: #4A5568;
    --text-muted: #718096;
    --text-light: #A0AEC0;

    --border: #E2E8F0;
    --border-light: #EDF2F7;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-normal);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2.5rem;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.login-footer p {
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

select.form-control {
    cursor: pointer;
}

/* Zarif native select / input — Sınav Okuma / formlar */
.main-content select,
select.form-control,
.main-content input[type="search"],
.main-content input[type="text"],
.main-content input[type="email"],
.main-content input[type="tel"],
.main-content input[type="number"],
.main-content input[type="date"],
input.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.35;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 2.45rem;
    width: 100%;
}

.main-content select,
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 14px;
    padding-right: 2.2rem;
}

.main-content select:hover,
select.form-control:hover,
.main-content input[type="search"]:hover,
.main-content input[type="text"]:hover,
.main-content input[type="email"]:hover,
.main-content input[type="tel"]:hover,
.main-content input[type="number"]:hover,
.main-content input[type="date"]:hover,
input.form-control:hover {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.main-content select:focus,
select.form-control:focus,
.main-content input[type="search"]:focus,
.main-content input[type="text"]:focus,
.main-content input[type="email"]:focus,
.main-content input[type="tel"]:focus,
.main-content input[type="number"]:focus,
.main-content input[type="date"]:focus,
input.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(81, 207, 102, 0.1);
    border-left: 4px solid var(--success);
    color: #2f855a;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--danger);
    color: #c53030;
}

.alert-warning {
    background: rgba(255, 217, 61, 0.1);
    border-left: 4px solid var(--warning);
    color: #c05621;
}

.alert-info {
    background: rgba(78, 205, 196, 0.1);
    border-left: 4px solid var(--secondary);
    color: #2c7a7b;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-gray);
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-gray);
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

thead {
    background: var(--bg-gray);
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody td {
    padding: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-normal);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--bg-light);
}

/* Dashboard Layout - Compact & Elegant (Saglik Style) */
.dashboard,
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    /* Reduced width */
    background: linear-gradient(180deg, var(--primary-dark) 0%, #4a43b5 100%);
    color: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    /* Sleeker shadow */
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar > nav {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.sidebar-header h2 {
    color: white;
    font-size: 15px;
    /* Compact font */
    font-weight: 700;
    margin: 0;
}

.sidebar-header p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.sidebar-nav {
    list-style: none;
    flex: 1;
    min-height: 0;
    padding: 12px 0;
    overflow-y: auto;
}

.sidebar-nav li {
    margin: 1px 0;
}

.sidebar-nav-divider {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav-heading {
    margin-top: 0.75rem;
    padding: 0.6rem 20px 0.3rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav-heading:first-child {
    margin-top: 0;
    border-top: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    /* Compact font */
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.10);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.6);
}

.sidebar-nav a.active {
    border-left-color: white;
    background: rgba(255, 255, 255, 0.14);
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
}

/* Utilities */
.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard,
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        min-height: auto;
        align-self: stretch;
    }

    .main-content {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }
}

/* Action Buttons in Tables */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    font-size: 0.875rem;
    min-width: 35px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInUp 0.3s ease;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
}

.modal-footer {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* ================================
   Ortak üst gezinme şeridi (includes/nav.php)

   Portal'da yerel uygulamanın sidebar'ı yok; her sayfanın üstündeki bu şerit hem "Ana Menü"ye
   dönüşü hem de rolün görebildiği sayfaları taşır. İkonlar gömülü SVG (stroke: currentColor) —
   aktif sekmede bağlantı rengi beyaza döndüğü için ikon da kendiliğinden beyaz olur.
   ================================ */
.portal-header {
    margin-bottom: 1.75rem;
    padding: 18px 0 0;
}

.portal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.portal-ico {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.portal-ico-title {
    width: 30px;
    height: 30px;
    padding: 5px;
    box-sizing: content-box;
    border-radius: 10px;
    /* Önce düz yedek (color-mix desteklemeyen eski tarayıcılar bu satırda kalır),
       sonra tema rengine göre otomatik türetilen ton. */
    background: rgba(108, 99, 255, 0.12);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

.portal-header-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
}

.portal-header-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.portal-header-user {
    color: var(--text-muted);
    font-weight: 600;
}

.portal-header-logout {
    text-decoration: none;
    color: var(--text-normal);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    transition: var(--transition);
}

.portal-header-logout:hover {
    border-color: var(--danger);
    color: var(--danger);
    text-decoration: none;
}

/* --- Menü şeridi --- */
.portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.portal-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-normal);
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.portal-nav-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.portal-nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(108, 99, 255, 0.55);
    box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--primary) 55%, transparent);
}

.portal-nav-link.active:hover {
    color: #fff;
    transform: none;
}

.portal-nav-home {
    background: var(--bg-gray);
}

.portal-nav-badge {
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Sınav Okuma alt menü — segment şerit (kart/buton yığını değil) */
.portal-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 12px;
    margin-bottom: 2px;
    padding: 4px;
    background: var(--bg-gray);
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    border-radius: 12px;
}

.portal-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-muted);
    background: transparent;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.portal-subnav-link:hover {
    color: var(--text-dark);
    background: color-mix(in srgb, var(--bg-white) 70%, transparent);
    text-decoration: none;
}

.portal-subnav-link.active {
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: 0 1px 2px rgba(45, 55, 72, 0.08);
    font-weight: 600;
}

.portal-subnav-link.active .portal-ico {
    color: var(--primary);
}

.portal-subnav-link.is-soon {
    opacity: 0.5;
    cursor: default;
}

.portal-subnav-link.is-soon em {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 4px;
    opacity: 0.85;
}

.page-lead {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

/* Sınav Okuma hub — zarif ızgara */
.so-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.so-menu-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    min-height: 7.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.so-menu-item:hover {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    box-shadow: 0 8px 24px -12px rgba(45, 55, 72, 0.18);
    text-decoration: none;
    transform: translateY(-2px);
}

.so-menu-item.is-soon {
    opacity: 0.68;
    background: color-mix(in srgb, var(--bg-gray) 55%, var(--bg-white));
}

.so-menu-ico {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    margin-top: 0;
    border-radius: 10px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, var(--bg-white));
}

.so-menu-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.so-menu-text strong {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.so-menu-text strong em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 6px;
}

.so-menu-text > span {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.45;
}

@media (max-width: 640px) {
    .so-menu-list {
        grid-template-columns: 1fr;
    }

    .portal-subnav {
        border-radius: 12px;
    }

    .portal-subnav-link {
        flex: 1 1 auto;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* --- Ana menü karşılama alanı (index.php + öğrenci panosu) ---
   Eskiden burada menünün birebir tekrarı olan bir kart ızgarası vardı; kaldırıldı,
   yerine kurumun logosu/kimliği kondu (2026-07-28 kullanıcı isteği). */
.portal-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    padding: 54px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.portal-hero-logo {
    max-width: 260px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.portal-hero-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.portal-hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.portal-hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .portal-hero {
        padding: 34px 16px;
    }

    .portal-nav-link {
        padding: 9px 13px;
        font-size: 0.88rem;
    }

    .portal-header-title {
        font-size: 1.35rem;
    }
}

@media print {
    .no-print,
    .portal-header {
        display: none !important;
    }
}
