/* ===================================== */
/* 🌍 GLOBAL STYLES */
/* ===================================== */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* 🔥 FIXED DOODLE BACKGROUND */
body.site-doodle-bg {
    position: relative;
    background-color: #f0f2f5;
}

body.site-doodle-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    /* background: url("/images/doodle-bg.png") center center / cover no-repeat; */

    opacity: 0.05;
}

body.site-doodle-bg > * {
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin-top: 10px;
}

input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* ===================================== */
/* 🌊 RIPPLE EFFECT */
/* ===================================== */

button,
.btn,
a.btn {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 700ms ease-out;
    background-color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    opacity: 0.75;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===================================== */
/* 🔐 LOGIN PAGE */
/* ===================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
}

.login-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-content {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-page .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 22px;
}

.login-page .logo img {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-box {
    width: 100%;
    background: #fff;
    padding: 36px 38px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    text-align: left;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 26px;
    font-size: 24px;
    font-weight: 500;
    color: #1f2937;
}

.login-box label {
    display: block;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 15px;
    color: #111827;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    border: 1px solid #d1d5db;
    padding: 12px 14px;
    margin-top: 0;
    margin-bottom: 18px;
    border-radius: 6px;
    background-color: #fff6bf;
    font-size: 15px;
}

.login-box input[type="password"] {
    margin-bottom: 24px;
}

.login-box button {
    margin-top: 8px;
    padding: 12px 14px;
    background: #0d6efd;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease;
}

.login-box button:hover {
    background: #0b5ed7;
}

.error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 6px;
}

.login-footer {
    width: 100%;
    text-align: center;
    padding: 14px 10px 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    margin-top: auto;
}

.login-footer strong {
    color: #4b5563;
}

/* ===================================== */
/* 📝 CREATE TICKET PAGE */
/* ===================================== */

.ticket-container {
    width: 450px;
    margin: 80px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.ticket-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.ticket-container label {
    font-weight: bold;
}

.ticket-container select,
.ticket-container textarea,
.ticket-container input[type="file"] {
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 5px;
}

.ticket-container button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.ticket-container button:hover {
    background: #0056b3;
}

.success-msg {
    color: green;
    text-align: center;
    margin-bottom: 10px;
}

/* ===================================== */
/* 💼 USER DASHBOARD */
/* ===================================== */

.logo img {
    width: 140px;
    display: block;
    margin: 0 auto;
}

.nav-box {
    background: white;
    border-radius: 10px;
    width: 300px;
    margin: 15px auto;
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.nav-box a {
    display: block;
    padding: 10px;
    font-size: 18px;
    text-decoration: none;
    color: #007bff;
}

.nav-box a:hover {
    background: #f0f0f0;
}

.ticket-card {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background: white;
    margin-bottom: 15px;
}

.no-ticket {
    text-align: center;
    margin-top: 20px;
}

.no-ticket p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* ===================================== */
/* 🧾 TABLES & COLUMNS */
/* ===================================== */

.ticket-description {
    max-width: 350px;
    white-space: normal;
    word-wrap: break-word;
}

/* ===================================== */
/* 🌈 STATUS BADGES */
/* ===================================== */

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    color: #fff;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 600;
}

.status-pending {
    background: #ffc107;
    color: #000;
}

.status-progress {
    background: #17a2b8;
}

.status-closed {
    background: #28a745;
}

.status-other {
    background: #6c757d;
}

/* ===================================== */
/* 🧭 NAVBAR */
/* ===================================== */

.navbar-brand img {
    height: 45px;
}

.navbar .nav-link {
    font-size: 16px;
    margin-left: 15px;
}

.navbar .nav-link i {
    margin-right: 6px;
    font-size: 18px;
    vertical-align: -2px;
}

.navbar .nav-link.active {
    border-bottom: 2px solid #007bff;
}

/* ===================================== */
/* 🎨 BUTTONS */
/* ===================================== */

.card {
    border-radius: 10px;
}

.btn-primary {
    border-radius: 8px;
    padding: 10px 20px;
}

/* ===================================== */
/* 📱 RESPONSIVE */
/* ===================================== */

@media (max-width: 576px) {
    .login-page {
        min-height: 100svh;
        padding: 20px 14px 12px;
    }

    .login-wrapper {
        align-items: center;
        justify-content: center;
    }

    .login-content {
        max-width: 100%;
    }

    .login-page .logo {
        margin-bottom: 18px;
    }

    .login-page .logo img {
        width: 96px;
    }

    .login-box {
        padding: 28px 22px;
    }

    .login-box h2 {
        margin-bottom: 22px;
    }

    .login-box input[type="text"],
    .login-box input[type="password"] {
        margin-bottom: 16px;
    }

    .login-box input[type="password"] {
        margin-bottom: 24px;
    }

    .login-box button {
        margin-top: 10px;
    }

    .login-footer {
        font-size: 13px;
        line-height: 1.6;
        padding: 14px 8px 4px;
    }

    .ticket-container {
        width: 100%;
        margin: 40px auto;
    }
}