/* =========================================================
   Monik Fault Request & Tracking System — Global Styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --bg-dark: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);

    --border-glass: rgba(100, 120, 200, 0.15);

    --accent-blue: #2563eb;
    --accent-green: #16a34a;
    --accent-purple: #7c3aed;
    --accent-amber: #d97706;
    --accent-red: #dc2626;

    --text-primary: #1e293b;
    --text-muted: #64748b;

    --gradient-main:
        linear-gradient(
            135deg,
            #f0f4ff 0%,
            #e8eef9 40%,
            #eef2ff 70%,
            #f5f0ff 100%
        );

    --gradient-card:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.06),
            rgba(124, 58, 237, 0.04)
        );

    --shadow-glow:
        0 0 40px rgba(37, 99, 235, 0.10);

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --transition:
        all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--gradient-main);
    color: var(--text-primary);

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;

    background-attachment: fixed;
}

/* =========================================================
   BACKGROUND ORBS
   ========================================================= */

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: 600px;
    height: 600px;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.08) 0%,
            transparent 70%
        );

    top: -200px;
    left: -200px;

    animation: floatOrb 12s ease-in-out infinite alternate;
}

body::after {
    width: 500px;
    height: 500px;

    background:
        radial-gradient(
            circle,
            rgba(124, 58, 237, 0.07) 0%,
            transparent 70%
        );

    bottom: -150px;
    right: -150px;

    animation: floatOrb 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(40px, 30px) scale(1.1);
    }
}

/* =========================================================
   PAGE WRAPPER
   ========================================================= */

.page-wrapper {
    position: relative;
    z-index: 1;

    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 1rem 0;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* =========================================================
   GLASS CARD
   ========================================================= */

.glass-card {
    background: var(--bg-card);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);

    box-shadow:
        var(--shadow-glow),
        0 4px 24px rgba(37, 99, 235, 0.07);

    transition: var(--transition);

    width: 100%;
}

.glass-card:hover {
    box-shadow:
        0 0 40px rgba(37, 99, 235, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.08);

    border-color: rgba(37, 99, 235, 0.25);
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar-monik {
    background: rgba(255, 255, 255, 0.82) !important;

    backdrop-filter: blur(20px);

    border-bottom:
        1px solid rgba(100, 120, 200, 0.15);

    box-shadow:
        0 2px 16px rgba(37, 99, 235, 0.07);

    flex-wrap: wrap;

    gap: 10px;
}

.navbar-brand-text {
    font-weight: 700;
    font-size: 1.1rem;

    color: var(--text-primary);

    letter-spacing: 0.02em;
}

.brand-badge {
    font-size: 0.7rem;

    background:
        linear-gradient(
            135deg,
            var(--accent-blue),
            var(--accent-purple)
        );

    color: #fff;

    padding: 2px 8px;

    border-radius: 20px;

    font-weight: 600;

    margin-left: 8px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-ghost {
    background: transparent;

    border: 1px solid var(--border-glass);

    color: var(--text-muted);

    border-radius: var(--radius-sm);

    padding: 0.5rem 1.2rem;

    font-weight: 500;

    transition: var(--transition);
}

.btn-ghost:hover {
    background: rgba(37, 99, 235, 0.06);

    border-color: var(--accent-blue);

    color: var(--accent-blue);
}

/* =========================================================
   PAGE TITLE
   ========================================================= */

.page-title {
    font-size: 1.8rem;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--text-primary),
            var(--text-muted)
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    line-height: 1.4;
}

/* =========================================================
   HERO CARDS
   ========================================================= */

.hero-card {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 200px;
    height: auto;

    padding: 1.5rem;

    border-radius: var(--radius-lg);

    text-decoration: none;

    transition: var(--transition);

    position: relative;

    overflow: hidden;

    border: 1px solid transparent;

    text-align: center;

    width: 100%;
}

.hero-card:hover {
    transform: translateY(-8px);
}

.hero-card-green {
    background:
        linear-gradient(
            135deg,
            #a5fa90,
            #17df1a
        );

    box-shadow:
        0 8px 32px rgba(34, 197, 94, 0.2);
}

.hero-card-green:hover {
    box-shadow:
        0 20px 60px rgba(34, 197, 94, 0.35);
}

.hero-card-blue {
    background:
        linear-gradient(
            135deg,
            #1e3a5f,
            #1d4ed8
        );

    box-shadow:
        0 8px 32px rgba(79, 142, 247, 0.2);
}

.hero-card-blue:hover {
    box-shadow:
        0 20px 60px rgba(79, 142, 247, 0.35);
}

.hero-icon {
    font-size: 2.5rem;

    margin-bottom: 1rem;

    color: #fff;
}

.hero-title {
    font-size: 1.3rem;
    font-weight: 700;

    color: #fff;

    margin-bottom: 0.3rem;

    line-height: 1.3;
}

.hero-sub {
    font-size: 0.85rem;

    color: rgba(255, 255, 255, 0.8);

    line-height: 1.5;
}

/* =========================================================
   INFO STRIP
   ========================================================= */

.stat-card {
    background: var(--gradient-card);

    border: 1px solid var(--border-glass);

    border-radius: var(--radius-lg);

    padding: 1.5rem;

    text-align: center;

    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-glow);
}

/* =========================================================
   FORMS
   ========================================================= */

.form-control-dark,
.form-select-dark {
    background:
        rgba(255, 255, 255, 0.9) !important;

    border:
        1px solid rgba(100, 120, 200, 0.25) !important;

    color: var(--text-primary) !important;

    border-radius: var(--radius-sm) !important;

    padding: 0.65rem 1rem !important;

    transition: var(--transition);
}

.form-control-dark:focus,
.form-select-dark:focus {
    background: #ffffff !important;

    border-color: var(--accent-blue) !important;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12) !important;

    outline: none;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-slide-up {
    animation: fadeSlideUp 0.5s ease;
}

/* =========================================================
   IMAGES
   ========================================================= */

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: auto;

    padding-left: 15px;
    padding-right: 15px;

    word-break: break-word;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

    .page-title {
        font-size: 1.6rem;
    }

    .hero-card {
        min-height: 180px;
    }

    .navbar-monik {
        padding: 1rem !important;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    .page-wrapper {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar-monik {
        justify-content: center !important;

        text-align: center;

        padding: 0.8rem 1rem !important;
    }

    .navbar-monik > div {
        width: 100%;

        justify-content: center;
    }

    .navbar-monik .btn-ghost {
        width: 100%;

        text-align: center;

        margin-top: 5px;
    }

    .navbar-brand-text {
        font-size: 1rem;
    }

    .brand-badge {
        display: inline-block;

        margin-top: 5px;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .hero-card {
        min-height: 150px;

        padding: 1rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-sub {
        font-size: 0.8rem;
    }

    .hero-icon {
        font-size: 2rem;
    }

    .glass-card {
        padding: 1rem !important;
    }

    body::before,
    body::after {
        display: none;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .page-title {
        font-size: 1.15rem;
    }

    .hero-title {
        font-size: 1rem;
    }

    .hero-sub {
        font-size: 0.75rem;
    }

    .hero-icon {
        font-size: 1.7rem;
    }

    .navbar-brand-text {
        font-size: 0.9rem;
    }

    .brand-badge {
        font-size: 0.6rem;
    }

    .btn-ghost {
        width: 100%;
    }
}