html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

/* =========================================
   GLOBAL BODY
========================================= */

body {
    margin-bottom: 60px;
    background: linear-gradient( 135deg, #f4f7fb 0%, #e9eef7 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
}

/* =========================================
   FOCUS
========================================= */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #3b82f6;
}

/* =========================================
   NAVBAR
========================================= */

.navbar {
    background: linear-gradient( 90deg, #1e293b, #0f172a) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.navbar-brand,
.nav-link {
    color: white !important;
    font-weight: 500;
}

    .nav-link:hover {
        color: #93c5fd !important;
    }

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c%2fsvg%3e");
}

/* =========================================
   CARDS
========================================= */

.card {
    border: none;
    border-radius: 18px;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

/* =========================================
   BUTTONS
========================================= */

.btn-primary {
    background: linear-gradient( 90deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 600;
}

.btn-success {
    border-radius: 10px;
}

.btn-danger {
    border-radius: 10px;
}

/* =========================================
   TABLES
========================================= */

.table {
    background: white;
    border-radius: 14px;
    overflow: hidden;
}

    .table thead {
        background: #1e293b;
        color: white;
    }

    .table tbody tr:hover {
        background: #f1f5f9;
    }

/* =========================================
   FORM CONTROLS
========================================= */

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #3b82f6;
    }

/* =========================================
   HEADINGS
========================================= */

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: #111827;
}

/* =========================================
   TOAST
========================================= */

.toast {
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* =========================================
   LOGIN PAGE
========================================= */

.login-bg {
    position: fixed;
    inset: 0;
    background: url('/images/pbmbkround.png') center center / cover no-repeat;
    z-index: -2;
}

.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgb(62, 108, 244, 0.50);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    margin-top: 100px;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.login-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.login-input {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 1rem;
}

    .login-input::placeholder {
        color: rgba(255, 255, 255, 0.55);
    }

    .login-input:focus {
        background: rgba(255, 255, 255, 0.22) !important;
        border-color: rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 0 0 3px rgba(255,255,255,0.15) !important;
        color: white !important;
    }

.login-btn {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 12px !important;
    padding: 12px !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37,99,235,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}

    .login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37,99,235,0.5);
    }

.login-card a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-decoration: underline;
}

    .login-card a:hover {
        color: white;
    }

.login-error {
    background: rgba(239,68,68,0.2);
    border: 1px solid rgba(239,68,68,0.4);
    color: #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
}
