/* ApplyUni admin: modern theme (2026-10-15). Loaded after admin_custom.css. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root, html[data-theme="light"] {
    --primary: #4f46e5;
    --secondary: #4338ca;
    --accent: #4f46e5;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --link-color: #4f46e5;
    --link-fg: #4f46e5;
    --link-hover-color: #4338ca;
    --body-bg: #f5f6fa;
    --body-fg: #1e293b;
    --body-quiet-color: #64748b;
    --header-bg: #0f172a;
    --header-color: #e2e8f0;
    --header-branding-color: #fff;
    --header-link-color: #e2e8f0;
    --breadcrumbs-bg: transparent;
    --breadcrumbs-fg: #64748b;
    --breadcrumbs-link-fg: #4f46e5;
    --module-bg: #fff;
    --module-header-bg: #fff;
    --border-color: #e5e7eb;
    --hairline-color: #eef0f4;
    --darkened-bg: #f8fafc;
    --selected-bg: #eef2ff;
    --selected-row: #eef2ff;
    --button-bg: #4f46e5;
    --button-hover-bg: #4338ca;
    --default-button-bg: #4f46e5;
    --default-button-hover-bg: #4338ca;
    --object-tools-bg: #4f46e5;
    --object-tools-hover-bg: #4338ca;
    --close-button-bg: #64748b;
    --delete-button-bg: #dc2626;
    --delete-button-hover-bg: #b91c1c;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.06);
}

html, body, input, select, textarea, button, table {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
body { background: var(--body-bg) !important; color: var(--body-fg); font-size: 14px; -webkit-font-smoothing: antialiased; }

/* Header */
#header {
    background: var(--header-bg) !important;
    padding: 12px 28px !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    align-items: center;
}
#branding h1, #site-name, #site-name a { color: #fff !important; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
#branding img, #site-name img { height: 32px !important; width: auto; border-radius: 6px; background: #fff; padding: 3px; }
#user-tools { font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important; color: #94a3b8 !important; }
#user-tools a, #user-tools button { color: #e2e8f0 !important; border: 0; border-bottom: 0 !important; padding: 5px 10px; border-radius: 8px; transition: background .15s; }
#user-tools a:hover, #user-tools button:hover { background: rgba(255,255,255,.1); color: #fff !important; }
#header select { background: rgba(255,255,255,.08) !important; color: #e2e8f0 !important; border: 1px solid rgba(255,255,255,.15) !important; border-radius: 8px !important; padding: 5px 8px !important; }
#header select option { color: #0f172a; }

/* Breadcrumbs */
div.breadcrumbs { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 18px 28px 0 !important; font-size: 13px; }
div.breadcrumbs a { color: #4f46e5 !important; font-weight: 500; }

/* Content */
#content { padding: 20px 28px 40px !important; }
#content h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #0f172a; margin: 0 0 18px; }
h2 { font-size: 16px; font-weight: 600; color: #0f172a; }
a:link, a:visited { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--link-hover-color); }

/* Sidebar */
#nav-sidebar { background: #fff !important; border-right: 1px solid var(--border-color) !important; }
#nav-sidebar .module th, #nav-sidebar .module td { padding: 8px 14px; }
#nav-sidebar .module caption, #nav-sidebar .module th a.section { background: transparent !important; color: #64748b !important; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; }
#nav-sidebar .module a { color: #334155; font-weight: 500; border-radius: 8px; }
#nav-sidebar .current-model, #nav-sidebar tr.current-model a { background: #eef2ff !important; color: #4338ca !important; }
#nav-filter { border-radius: 8px !important; border: 1px solid var(--border-color) !important; padding: 8px 10px !important; margin: 10px 12px; width: calc(100% - 24px); }
.toggle-nav-sidebar { background: #fff !important; border-right: 1px solid var(--border-color) !important; }

/* Cards / modules */
.module, .dashboard .module {
    background: #fff !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important; overflow: hidden; margin-bottom: 24px !important;
}
.module caption, .dashboard .module table caption, .module h2, .inline-group h2 {
    background: #fff !important; color: #0f172a !important; font-size: 13px !important; font-weight: 600 !important;
    letter-spacing: .04em; text-transform: uppercase; padding: 14px 18px !important; border-radius: 0 !important;
    border-bottom: 1px solid var(--hairline-color); text-align: left;
}
.module caption a.section { color: #0f172a !important; }
.module table { width: 100%; border-collapse: collapse; }
.module th, .module td { padding: 10px 18px; border-bottom: 1px solid var(--hairline-color); }
.module tr:last-child th, .module tr:last-child td { border-bottom: 0; }
.dashboard .module tr:hover { background: #f8fafc; }
.addlink, .changelink { font-size: 12px !important; font-weight: 500; padding: 3px 10px !important; border-radius: 999px; background: #eef2ff; color: #4338ca !important; background-image: none !important; }
.addlink:hover, .changelink:hover { background: #e0e7ff; }
.addlink::before { content: "+ "; }
.changelink::before { content: "✎ "; }
#content-related .module { box-shadow: var(--shadow) !important; }

/* Change list */
#changelist .results { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); background: #fff; box-shadow: var(--shadow); }
#result_list { border: 0 !important; }
#result_list thead th { background: #f8fafc !important; color: #64748b; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 12px 14px; border-bottom: 1px solid var(--border-color) !important; }
#result_list thead th a { color: #64748b !important; }
#result_list tbody td, #result_list tbody th { padding: 12px 14px; border-bottom: 1px solid var(--hairline-color); vertical-align: middle; }
#result_list tbody tr:hover { background: #f8fafc; }
#result_list tbody tr.selected { background: #eef2ff; }
#toolbar { background: #fff !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius); padding: 10px 14px !important; margin-bottom: 14px; box-shadow: var(--shadow); }
#toolbar form #searchbar { border: 1px solid var(--border-color) !important; border-radius: 8px !important; padding: 8px 12px !important; height: auto !important; width: 280px; }
#toolbar form #searchbar:focus { border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79,70,229,.15); outline: 0; }
.actions { background: #f8fafc !important; border: 1px solid var(--border-color) !important; border-radius: 10px; padding: 8px 14px !important; margin-bottom: 10px; }
#changelist-filter { background: #fff !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
#changelist-filter h2 { background: #fff !important; padding: 14px 16px !important; }
#changelist-filter h3 { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .05em; padding: 0 16px; margin: 14px 0 6px; }
#changelist-filter li a { padding: 4px 16px; display: block; color: #334155; }
#changelist-filter li.selected a { color: #4f46e5 !important; font-weight: 600; border-left: 3px solid #4f46e5; padding-left: 13px; background: #eef2ff; }
.paginator { background: transparent !important; border: 0 !important; padding: 14px 4px !important; color: #64748b; font-size: 13px; }
.paginator a:link, .paginator a:visited { background: #fff !important; color: #334155 !important; border: 1px solid var(--border-color); border-radius: 8px; padding: 4px 10px; }
.paginator a:hover { border-color: #4f46e5; color: #4f46e5 !important; }
.paginator .this-page { background: #4f46e5; color: #fff; border-radius: 8px; padding: 5px 11px; font-weight: 600; }

/* Forms */
fieldset.module { padding: 0 !important; }
fieldset.module > h2 { margin: 0; }
.form-row { padding: 14px 18px !important; border-bottom: 1px solid var(--hairline-color) !important; }
.form-row:last-child { border-bottom: 0 !important; }
label { font-weight: 500; color: #334155; }
.required label, label.required { font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=tel], input[type=date], input[type=time], input[type=search], textarea, select {
    border: 1px solid #d5dae3 !important; border-radius: 8px !important; padding: 8px 12px !important; background: #fff !important; color: #0f172a !important;
    transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
input:focus, textarea:focus, select:focus { border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79,70,229,.15) !important; outline: 0 !important; }
.help, .helptext { color: #64748b !important; font-size: 12px; }
.errornote, ul.errorlist { border-radius: 10px; }
.errornote { background: #fef2f2 !important; color: #b91c1c !important; border: 1px solid #fecaca !important; padding: 12px 16px !important; }
ul.messagelist li { border-radius: 10px !important; margin: 0 0 8px !important; padding: 12px 16px 12px 44px !important; font-weight: 500; box-shadow: var(--shadow); }
ul.messagelist li.success { background: #ecfdf5 !important; color: #047857 !important; }
ul.messagelist li.warning { background: #fffbeb !important; color: #b45309 !important; }
ul.messagelist li.error { background: #fef2f2 !important; color: #b91c1c !important; }

/* Buttons */
.button, input[type=submit], input[type=button], .submit-row input, a.button, button.button {
    background: #4f46e5 !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
    padding: 9px 16px !important; font-weight: 600 !important; font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important;
    cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s; box-shadow: 0 1px 2px rgba(79,70,229,.3);
}
.button:hover, input[type=submit]:hover, input[type=button]:hover, .submit-row input:hover, a.button:hover { background: #4338ca !important; transform: translateY(-1px); }
.button.default, input[type=submit].default { background: #4f46e5 !important; }
.submit-row { background: #fff !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius) !important; padding: 14px 18px !important; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.submit-row a.deletelink, .submit-row .deletelink { background: #fef2f2 !important; color: #b91c1c !important; border: 1px solid #fecaca !important; border-radius: 8px; padding: 9px 16px !important; font-weight: 600; height: auto !important; margin-left: auto; }
.submit-row a.deletelink:hover { background: #fee2e2 !important; }
.submit-row a.closelink { background: #f1f5f9 !important; color: #334155 !important; border-radius: 8px; padding: 9px 16px !important; }
.object-tools a { background: #4f46e5 !important; border-radius: 999px !important; padding: 7px 16px !important; font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; }
.object-tools a:hover { background: #4338ca !important; }

/* Tabular inlines, misc */
.inline-group { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color) !important; background: #fff; box-shadow: var(--shadow); }
.inline-group thead th { background: #f8fafc !important; color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.calendarbox, .clockbox { border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,23,42,.15); }
#footer { display: none; }

/* Recent actions */
#recent-actions-module { background: #fff; }
.actionlist li { padding: 8px 18px; border-bottom: 1px solid var(--hairline-color); }

/* Login page */
body.login { background: radial-gradient(1200px 600px at 10% 0%, #e0e7ff 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #fce7f3 0%, transparent 55%), #f5f6fa !important; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
body.login #container { width: 100%; max-width: 420px; background: transparent; min-height: 0; }
body.login #content { padding: 0 !important; }
.login-wrapper { width: 100%; }
.login-box { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid #e5e7eb; border-radius: 20px; padding: 36px 32px; box-shadow: 0 20px 50px rgba(15,23,42,.12); }
.login-header { text-align: center; margin-bottom: 24px; }
.login-header img { height: 52px; width: auto; }
.login-box .form-group { margin-bottom: 16px; }
.login-box .form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.login-box input[type=text], .login-box input[type=password] { width: 100% !important; padding: 11px 14px !important; font-size: 15px; }
.login-box .submit-row { border: 0 !important; box-shadow: none !important; padding: 8px 0 0 !important; background: transparent !important; }
.login-box .submit-row input { width: 100%; padding: 12px !important; font-size: 15px !important; border-radius: 10px !important; }
.login-box .password-reset { text-align: right; margin-bottom: 8px; font-size: 13px; }

@media (max-width: 767px) {
    #header { padding: 10px 16px !important; }
    #content { padding: 14px 14px 30px !important; }
    div.breadcrumbs { padding: 12px 16px 0 !important; }
    #toolbar form #searchbar { width: 100%; }
    .submit-row .deletelink { margin-left: 0; }
}

/* ===== Dashboard (admin index) ===== */
body.dashboard-page #content { padding-top: 24px !important; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { margin: 0 0 4px !important; }
.dash-head p { margin: 0; color: #64748b; font-size: 14px; }
.dash-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border-color); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; color: #334155 !important; box-shadow: var(--shadow); transition: all .15s; }
.dash-chip:hover { border-color: #4f46e5; color: #4f46e5 !important; transform: translateY(-1px); }
.dash-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 13px; }

.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.dash-kpi { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); color: inherit !important; transition: transform .15s, box-shadow .15s; }
.dash-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.1); }
.dash-kpi-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 46px; }
.dash-kpi-label { font-size: 12px; font-weight: 500; color: #64748b; }
.dash-kpi-value { font-size: 26px; font-weight: 700; color: #0f172a; letter-spacing: -.02em; line-height: 1.15; }
.dash-kpi-sub { font-size: 12px; color: #64748b; margin-top: 2px; }
.tone-indigo .dash-kpi-icon { background: #eef2ff; } .tone-violet .dash-kpi-icon { background: #f5f3ff; }
.tone-sky .dash-kpi-icon { background: #e0f2fe; } .tone-emerald .dash-kpi-icon { background: #ecfdf5; }
.tone-amber .dash-kpi-icon { background: #fffbeb; } .tone-rose .dash-kpi-icon { background: #fff1f2; }
.tone-teal .dash-kpi-icon { background: #f0fdfa; } .tone-slate .dash-kpi-icon { background: #f1f5f9; }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.dash-span2 { grid-column: span 2; }
.dash-card { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.dash-card header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.dash-card header h2 { margin: 0; font-size: 15px; font-weight: 600; color: #0f172a; }
.dash-muted { color: #94a3b8; font-size: 12px; }
.dash-chart { position: relative; }
.dash-donut { position: relative; height: 160px; }
.dash-legend { list-style: none; margin: 14px 0 0; padding: 0; }
.dash-legend li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: #334155; border-top: 1px solid var(--hairline-color); }
.dash-legend li b { margin-left: auto; color: #0f172a; }
.dash-legend i { width: 10px; height: 10px; border-radius: 3px; background: #cbd5e1; }
.dash-legend i.st-pending { background: #f59e0b; } .dash-legend i.st-submitted { background: #4f46e5; }
.dash-legend i.st-accepted { background: #10b981; } .dash-legend i.st-rejected { background: #ef4444; } .dash-legend i.st-withdrawn { background: #94a3b8; }

.dash-feed, .dash-upcoming { list-style: none; margin: 0; padding: 0; }
.dash-feed li, .dash-upcoming li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline-color); font-size: 13px; }
.dash-feed li:first-child, .dash-upcoming li:first-child { border-top: 0; }
.dash-feed-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dash-feed-body a, .dash-feed-body span { font-weight: 500; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-feed-body a:hover { color: #4f46e5; }
.dash-feed-body small { color: #64748b; font-size: 12px; }
.dash-feed time { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.dash-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; min-width: 86px; text-align: center; }
.dash-tag.tone-violet { background: #f5f3ff; color: #6d28d9; } .dash-tag.tone-amber { background: #fffbeb; color: #b45309; }
.dash-tag.tone-emerald { background: #ecfdf5; color: #047857; } .dash-tag.tone-rose { background: #fff1f2; color: #be123c; }
.dash-tag.tone-teal { background: #f0fdfa; color: #0f766e; } .dash-tag.tone-sky { background: #e0f2fe; color: #0369a1; }
.dash-date { width: 44px; height: 44px; border-radius: 10px; background: #eef2ff; color: #4338ca; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: 0 0 44px; }
.dash-date b { font-size: 17px; } .dash-date small { font-size: 10px; text-transform: uppercase; margin-top: 2px; }

.dash-apps { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; box-shadow: var(--shadow); padding: 6px 20px 18px; }
.dash-apps summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 12px 0; }
.dash-apps summary::-webkit-details-marker { display: none; }
.dash-apps summary h2 { margin: 0; font-size: 15px; }
.dash-apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash-app { background: #f8fafc; border: 1px solid var(--hairline-color); border-radius: 12px; padding: 12px 14px; }
.dash-app h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.dash-app h3 a { color: #64748b !important; }
.dash-app ul { list-style: none; margin: 0; padding: 0; }
.dash-app li { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.dash-app li > a { color: #1e293b !important; font-weight: 500; }
.dash-app li > a:hover { color: #4f46e5 !important; }
.dash-app-actions a { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 6px; background: #eef2ff; color: #4338ca !important; font-weight: 700; }

@media (max-width: 1200px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } .dash-apps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } .dash-span2 { grid-column: span 1; } .dash-apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dash-kpis { grid-template-columns: 1fr; } .dash-apps-grid { grid-template-columns: 1fr; } .dash-feed time { display: none; } }
/* dashboard genişlik: Django .dashboard #content { width: 600px } ləğv */
body.dashboard-page #content, body.dashboard-page.dashboard #content { width: auto !important; max-width: none !important; }
body.dashboard-page #content-main { float: none !important; width: 100% !important; }
.dash-chart { height: 260px; }
.dash-chart canvas, .dash-donut canvas { width: 100% !important; height: 100% !important; }
