:root {
    --mfr-blue: #0b3d63;
    --mfr-blue-2: #124f7d;
    --mfr-light: #f4f7fb;
    --mfr-border: #dce5ef;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--mfr-light);
    color: #1f2937;
    font-family: Arial, sans-serif;
}

/* LOGIN PAGE */
.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0b3d63 0%, #124f7d 50%, #e9f2fb 50%, #f7f9fc 100%);
    background-attachment: fixed;
}

.login-body .container {
    min-height: 100vh;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    width: 100%;
    max-width: 430px;
}

.login-logo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--mfr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.login-logo {
    max-width: 84px;
    max-height: 84px;
}

.logo-placeholder,
.nav-logo-placeholder {
    font-weight: 800;
    color: var(--mfr-blue);
}

.login-card h3,
.login-card h4 {
    color: var(--mfr-blue);
    font-weight: 800;
}

.login-card .form-control {
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--mfr-border);
}

.login-card .btn {
    height: 46px;
    border-radius: 12px;
    font-weight: 700;
    background: var(--mfr-blue);
    border-color: var(--mfr-blue);
}

.login-card .btn:hover {
    background: var(--mfr-blue-2);
    border-color: var(--mfr-blue-2);
}

/* NAVIGATION */
.toolbelt-navbar {
    background: var(--mfr-blue);
}

.nav-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nav-logo-wrap img {
    max-width: 36px;
    max-height: 36px;
}

/* DASHBOARD */
.dashboard-hero {
    background: linear-gradient(135deg, var(--mfr-blue), var(--mfr-blue-2));
    color: #ffffff;
    border-radius: 22px;
    padding: 32px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.tool-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--mfr-border);
    border-radius: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border-color: #b9ccdd;
    color: inherit;
}

.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eaf3fb;
    color: var(--mfr-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
}

.link-card .tool-icon {
    background: #f1f3f5;
    color: #495057;
}

/* ADMIN */
.admin-stat-card {
    border-radius: 18px;
    border: 1px solid var(--mfr-border);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--mfr-blue);
}

.tool-sort-item {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sortable-ghost {
    opacity: 0.35;
}

.sortable-chosen .tool-card {
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    transform: scale(1.02);
}

.sortable-drag .tool-card {
    cursor: grabbing;
}

.tool-card,
.tool-card * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.drag-handle {
    cursor: grab;
    user-select: none;
}

.sortable-drag,
.sortable-drag * {
    user-select: none;
}

body.dragging-tools,
body.dragging-tools * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}

.tool-launch-link {
    -webkit-user-drag: none;
}

.tool-card,
.tool-card *,
.drag-handle {
    user-select: none !important;
    -webkit-user-select: none !important;
}


/* FOOTER */
.toolbelt-footer {
    border-top: 1px solid var(--mfr-border);
    background: #ffffff;
}

/* MOBILE */
@media (max-width: 576px) {
    .login-card {
        padding: 24px;
        border-radius: 18px;
    }

    .dashboard-hero {
        padding: 24px;
    }
}