/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    color: white;

    background:
        radial-gradient(circle at 20% 30%, rgba(124,58,237,0.25), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6,182,212,0.25), transparent 40%),
        linear-gradient(135deg, #050816, #0b1220 60%, #020617);
}

/* =========================
   CONTAINER / CARD
========================= */
.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);

    padding: 30px;
    border-radius: 20px;

    text-align: center;

    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* =========================
   LOGO
========================= */
.logo-img {
    width: 70px;
    margin-bottom: 10px;
}

/* =========================
   TEXT
========================= */
h1, h2 {
    margin-bottom: 15px;
}

p {
    opacity: 0.8;
    margin-bottom: 20px;
}

/* =========================
   RGB INPUT SYSTEM (FIXED + SMOOTH)
========================= */
.rgb-border {
    position: relative;
    width: 100%;
    padding: 2px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* smoother animated border */
.rgb-border::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        #ff004c,
        #7c3aed,
        #00d4ff,
        #facc15,
        #ff004c
    );

    background-size: 300% 300%;
    animation: rgbMove 4s linear infinite;

    filter: blur(5px);
    z-index: 0;
}

/* input / select / month FIXED */
.rgb-border input,
.rgb-border select {
    position: relative;
    z-index: 1;

    width: 100%;
    padding: 14px 16px;

    border-radius: 12px;
    border: none;
    outline: none;

    background: #0b1220;
    color: white;

    font-size: 15px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* MONTH PICKER ICON */
.rgb-border input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.8;
}

/* =========================
   ANIMATION
========================= */
@keyframes rgbMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================
   BUTTONS (IMPROVED)
========================= */
button {
    width: 100%;
    padding: 14px;

    border-radius: 14px;
    border: none;

    font-weight: 600;
    font-size: 15px;

    cursor: pointer;
    color: white;

    background: linear-gradient(90deg, #7c3aed, #06b6d4, #f59e0b);
    background-size: 200% 100%;

    transition: all 0.35s ease;
}

button:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0,212,255,0.25);
}

/* =========================
   ADMIN BUTTON
========================= */
.admin-btn {
    display: block;
    margin-top: 15px;

    padding: 12px;
    border-radius: 14px;

    text-decoration: none;
    color: white;
    font-weight: 600;

    background: linear-gradient(90deg, #111827, #1f2937, #111827);
    background-size: 200% 100%;

    transition: 0.3s;
}

.admin-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
}

/* =========================
   TABLE (CLEANED)
========================= */
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

/* HEADER */
table th {
    background: rgba(255,255,255,0.08);
    padding: 12px;
    font-size: 14px;
}

/* CELLS */
table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}

/* ROW HOVER */
table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* =========================
   STATUS COLORS
========================= */
.ok { color: #22c55e; font-weight: bold; }
.bad { color: #ef4444; font-weight: bold; }
.warning { color: #facc15; font-weight: bold; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .card {
        padding: 20px;
    }

    h1 {
        font-size: 20px;
    }

    table th,
    table td {
        font-size: 13px;
        padding: 10px;
    }
}
/* =========================
   DASHBOARD LAYOUT FIX
========================= */
.dashboard-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.dashboard-buttons a {
    width: 100%;
    text-decoration: none;
}

/* buttons full width */
.dashboard-buttons button {
    width: 100%;
}

/* danger logout */
.danger-btn {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    background-size: 200% 100%;
}

.danger-btn:hover {
    background-position: right center;
    box-shadow: 0 0 20px rgba(239,68,68,0.4);
}