/* ==== Rəng palitrası - bir az daha açıq, modern ==== */
:root {
    --app-bg: #0f172a;             /* əsas fon */
    --app-bg-soft: #111827;        /* card və container fonu */
    --sidebar-bg: #0b1220;
    --sidebar-bg-dark: #020617;
    --sidebar-accent: #6366f1;
    --sidebar-text: #f9fafb;
    --sidebar-text-muted: #9ca3af;
    --topbar-bg: rgba(15,23,42,0.92);
    --accent: #6366f1;
    --accent-soft: rgba(99,102,241,0.14);
    --danger-soft: rgba(239,68,68,0.14);
    --card-bg: #111827;
    --card-border: rgba(148,163,184,0.45);
}

/* ==== Bütün sayta təsir edən body ==== */
body,
body.app-body {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #020617 100%);
    color: #f9fafb;
}

/* Ümumi text rəngləri */
h1, h2, h3, h4, h5, h6 {
    color: #f9fafb;
}
p, label, span, li, td, th {
    color: #e5e7eb;
}

/* Linklər */
a {
    text-decoration: none;
    color: #a5b4fc;
}
a:hover {
    text-decoration: none;
    color: #c7d2fe;
}

/* ==== App shell (sidebar + content) ==== */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ==== Sidebar ==== */
.app-sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-dark));
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    max-height: 100vh;
    box-shadow: 8px 0 24px rgba(15,23,42,0.9);
    z-index: 1030;
    transition: width 0.25s ease, transform 0.25s ease;
}

.app-sidebar-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid rgba(148,163,184,0.35);
}

.sidebar-logo-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #4f46e5, #6366f1 40%, #22c55e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 18px rgba(129,140,248,0.9);
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
}
.sidebar-logo-text .title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e5e7eb;
}
.sidebar-logo-text .subtitle {
    font-size: 0.78rem;
    color: var(--sidebar-text-muted);
}

/* Sidebar nav */
.app-sidebar-nav {
    padding: .75rem 0 1rem;
    flex: 1;
    overflow-y: auto;
}
.app-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}
.app-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,0.55);
    border-radius: 999px;
}

.sidebar-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    padding: 0.7rem 1.25rem 0.25rem;
    color: var(--sidebar-text-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1.25rem;
    font-size: 0.9rem;
    color: var(--sidebar-text-muted);
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
    position: relative;
}

.sidebar-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: transparent;
    transition: background 0.18s ease;
}

.sidebar-link-icon {
    width: 1.3rem;
    text-align: center;
    font-size: 1.05rem;
}

.sidebar-link span {
    white-space: nowrap;
}

.sidebar-link:hover {
    background: rgba(30,64,175,0.35);
    color: #f9fafb;
    transform: translateX(1px);
}

.sidebar-link.active {
    background: var(--accent-soft);
    color: #f9fafb;
}
.sidebar-link.active::before {
    background: var(--accent);
}

/* Sidebar footer */
.app-sidebar-footer {
    padding: .75rem 1.25rem 1rem;
    border-top: 1px solid rgba(148,163,184,0.35);
    font-size: 0.8rem;
    color: var(--sidebar-text-muted);
}

/* ==== Topbar ==== */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 .75rem 0 1rem;
    background: var(--topbar-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148,163,184,0.35);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-topbar-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.app-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 0.85rem;
}

.app-topbar-user {
    color: #e5e7eb;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar toggle button */
.sidebar-toggle-btn {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.8);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    padding: .25rem .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}
.sidebar-toggle-btn:hover {
    background: rgba(79,70,229,0.95);
    box-shadow: 0 0 14px rgba(129,140,248,0.9);
    transform: translateY(-1px);
}

/* ==== Content ==== */
.app-content {
    padding: 1.5rem 1.5rem 2rem;
}

/* ==== Cards ==== */
.card {
    background-color: var(--card-bg) !important;
    border-color: var(--card-border) !important;
    color: #f9fafb;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(15,23,42,0.85);
    backdrop-filter: blur(20px);
    transform: translateY(0);
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
    box-shadow: 0 24px 60px rgba(15,23,42,0.95);
    transform: translateY(-1px);
    border-color: rgba(129,140,248,0.75) !important;
}
.card-title {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f9fafb;
}

/* ==== Buttons ==== */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: none;
    color: #f9fafb;
    box-shadow: 0 10px 25px rgba(79,70,229,0.55);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    box-shadow: 0 14px 32px rgba(79,70,229,0.75);
    transform: translateY(-1px);
}
.btn-outline-danger {
    border-color: rgba(239,68,68,0.9);
    color: #fecaca;
}
.btn-outline-danger:hover {
    background: var(--danger-soft);
    color: #fee2e2;
}
.btn-outline-light {
    border-color: rgba(209,213,219,0.9);
    color: #f9fafb;
}
.btn-outline-light:hover {
    background: rgba(229,231,235,0.09);
}

/* ==== Table (Mövcud fənlər / qruplar / imtahanlar) ==== */
.table {
    color: #e5e7eb;
    border-color: rgba(55,65,81,0.85);
}
.table thead th {
    border-bottom-color: rgba(55,65,81,0.95);
    color: #9ca3af;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: rgba(15,23,42,0.95);
}
.table tbody tr {
    transition: background-color 0.12s ease, transform 0.05s ease;
}
.table tbody tr:nth-child(odd) {
    background-color: rgba(15,23,42,0.85);
}
.table tbody tr:nth-child(even) {
    background-color: rgba(17,24,39,0.92);
}
.table tbody tr:hover {
    background-color: rgba(30,64,175,0.45);
    transform: translateY(-1px);
}
.table td,
.table th {
    border-color: rgba(55,65,81,0.85);
}

/* ==== Form controls ==== */
.form-control,
.form-select {
    background-color: rgba(15,23,42,0.94);
    border-color: rgba(55,65,81,0.9);
    color: #f9fafb;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(129,140,248,0.7);
}
.form-control::placeholder {
    color: #9ca3af;
}

/* ==== Badges ==== */
.badge.bg-success {
    background-image: linear-gradient(135deg, #16a34a, #22c55e);
}
.badge.bg-warning {
    background-image: linear-gradient(135deg, #f59e0b, #f97316);
}
.badge.bg-secondary {
    background-image: linear-gradient(135deg, #6b7280, #9ca3af);
}

/* ==== Animasiya ==== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.app-content > .card,
.app-content > .row > [class*="col-"] > .card {
    animation: fadeInUp .32s ease-out;
}

/* ==== Sidebar collapsed ==== */
body.sidebar-collapsed .app-sidebar {
    width: 72px;
}
body.sidebar-collapsed .sidebar-logo-text {
    display: none;
}
body.sidebar-collapsed .sidebar-section-title {
    display: none;
}
body.sidebar-collapsed .sidebar-link span {
    display: none;
}
body.sidebar-collapsed .app-content {
    padding-left: 1rem;
}

/* Mobil üçün sidebar */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        width: 240px;
    }
    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }
    .app-content {
        padding: 1.25rem;
    }
}

/* ==== User tərəfi üçün hero və ticket kartları ==== */
.hero-header {
    text-align: center;
    padding: 2.5rem 1.5rem 1rem;
    color: #f9fafb;
}
.hero-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.hero-header p {
    color: #d1d5db;
}

.ticket-card {
    border-radius: 1.1rem;
    overflow: hidden;
}

/* Text-muted bir az açıq olsun */
.text-muted {
    color: #9ca3af !important;
}


/* === Index səhifəsi: ad/soyad form dizaynı === */

.hero-card {
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #eef2ff, #f9fafb);
    overflow: hidden;
    color: #111827; /* kart içində default yazı rəngi tünd */
}

.hero-card * {
    color: #111827; /* text-white kimi classları da override etsin */
}

.hero-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111827;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
}

.hero-input {
    border-radius: 0.75rem;
    background-color: #ffffff;
    border-color: #d1d5db;
    color: #111827; /* input daxilində yazı tünd */
}

.hero-input::placeholder {
    color: #9ca3af; /* placeholder da açıq boz olsun, tam ağ yox */
}

.hero-input:focus {
    background-color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.25);
}

.hero-btn {
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #f9fafb;
    border: none;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(79,70,229,0.35);
}

.hero-btn:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    box-shadow: 0 12px 30px rgba(79,70,229,0.5);
    transform: translateY(-1px);
}

.hero-card .alert {
    border-radius: 0.75rem;
    background-color: #fef3c7;
    color: #92400e;
}



