:root {
    --brand: #1f3a5f;
    --brand-2: #2f6db5;
    --brand-accent: #3aa0ff;
    --bg: #f4f6f9;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2a37;
}

.app-body {
    background: var(--bg);
    min-height: 100vh;
}

/* ---------- Navbar ---------- */
.app-navbar {
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
}

.app-navbar .navbar-brand i {
    color: var(--brand-accent);
}

.app-navbar .nav-link:hover {
    color: var(--brand-accent) !important;
}

.app-main {
    max-width: 1400px;
    margin: 0 auto;
}

/* ---------- Auth / Login ---------- */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16273f 0%, #2f6db5 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.auth-card .brand {
    text-align: center;
    color: var(--brand);
}

.auth-card .brand i {
    font-size: 2.6rem;
    color: var(--brand-2);
}

/* ---------- Cards / tables ---------- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(16,40,80,.08);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--brand);
}

.btn-brand {
    background: var(--brand-2);
    border-color: var(--brand-2);
    color: #fff;
}

.btn-brand:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.table thead th {
    background: #eef2f8;
    color: #33415c;
    font-weight: 600;
    border-bottom: 2px solid #dfe6f0;
}

.badge-kind {
    font-weight: 500;
}

.file-icon {
    font-size: 1.25rem;
    margin-right: .4rem;
}

.file-word { color: #2b579a; }
.file-cell { color: #217346; }
.file-slide { color: #d24726; }
.file-pdf { color: #d93025; }
.file-other { color: #6c757d; }

.stat-card {
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
}

.stat-card .num {
    font-size: 1.8rem;
    font-weight: 700;
}

/* ---------- Editor ---------- */
.editor-wrap {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
}

.editor-topbar {
    background: var(--brand);
    color: #fff;
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editor-topbar a { color: #cfe2ff; }

#onlyoffice-editor {
    flex: 1;
    width: 100%;
}
