/* ==========================================
   FUTURISTIC / CYBERPUNK CUSTOM STYLESHEET
   ========================================== */

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

:root {
    --cyber-bg: #07060e;
    --cyber-black: rgba(10, 8, 20, 0.85);
    --cyber-glow-red: rgba(255, 0, 96, 0.6);
    --cyber-glow-cyan: rgba(0, 240, 255, 0.4);
    --cyber-red: #ff0060;
    --cyber-cyan: #00f0ff;
    --cyber-purple: #9d00ff;
    --cyber-dark-purple: #120e2e;
    --cyber-border-color: rgba(0, 240, 255, 0.15);
}

/* Base Body Styles */
body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--cyber-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 0, 96, 0.07) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 240, 255, 0.07) 0px, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    background-attachment: fixed;
    color: #e2e8f0;
    letter-spacing: 0.05em;
    font-size: 1.15rem;
    line-height: 1.5;
    min-height: 100vh;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 0, 96, 0.2);
}

h1.h3, h2.h4 {
    border-left: 4px solid var(--cyber-red);
    padding-left: 12px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #050409;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 96, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-red);
    box-shadow: 0 0 10px var(--cyber-red);
}

/* Layout - Sidebar */
aside.bg-black {
    background: var(--cyber-black) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 2px solid rgba(0, 240, 255, 0.12) !important;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.7);
    z-index: 100;
}

aside hr {
    border-color: rgba(0, 240, 255, 0.2);
    opacity: 0.5;
}

/* Sidebar Brand */
aside .text-danger {
    color: var(--cyber-red) !important;
    text-shadow: 0 0 12px var(--cyber-glow-red);
    font-weight: 900 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Navigation links */
.nav-pills .nav-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 10px 14px;
    border-left: 3px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
    margin-bottom: 2px;
}

.nav-pills .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.nav-pills .nav-link:hover {
    color: var(--cyber-cyan) !important;
    border-left-color: var(--cyber-cyan);
    background: rgba(0, 240, 255, 0.08) !important;
    text-shadow: 0 0 8px var(--cyber-cyan);
    padding-left: 18px;
}

.nav-pills .nav-link:hover i {
    transform: scale(1.15);
}

.nav-pills .nav-link.active {
    background: linear-gradient(90deg, rgba(255, 0, 96, 0.2), rgba(255, 0, 96, 0)) !important;
    border-left-color: var(--cyber-red) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 0, 96, 0.6);
}

/* Layout - Header Navbar */
.navbar.bg-black {
    background: rgba(10, 8, 20, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(255, 0, 96, 0.12) !important;
    padding: 12px 24px;
}

.navbar-brand.text-danger {
    color: var(--cyber-red) !important;
    text-shadow: 0 0 10px var(--cyber-glow-red);
}

.navbar-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: #e2e8f0 !important;
}

.navbar-text i {
    color: var(--cyber-cyan);
    text-shadow: 0 0 8px var(--cyber-cyan);
}

.navbar-text .link-danger {
    color: var(--cyber-red) !important;
    text-decoration: none;
    border: 1px solid rgba(255, 0, 96, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 0, 96, 0.05);
    transition: all 0.2s ease;
}

.navbar-text .link-danger:hover {
    background: var(--cyber-red);
    color: #fff !important;
    box-shadow: 0 0 12px var(--cyber-glow-red);
}

/* Cards (Glassmorphism + Cyberpunk top accent) */
.card.bg-black {
    background: rgba(18, 15, 32, 0.65) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--cyber-border-color) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card.bg-black::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-red), var(--cyber-cyan));
    opacity: 0.8;
}

.card.bg-black:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.35) !important;
}

.card-header {
    background: rgba(0, 240, 255, 0.03) !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15) !important;
    padding: 14px 20px !important;
}

.card-header strong {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    color: var(--cyber-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* Forms */
.form-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: uppercase;
}

.form-control, .form-select {
    background: rgba(10, 8, 22, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 10px 14px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus, .form-select:focus {
    background: rgba(16, 12, 34, 0.9) !important;
    border-color: var(--cyber-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35) !important;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn-danger {
    background: linear-gradient(135deg, var(--cyber-red), #b90044) !important;
    border: none !important;
    box-shadow: 0 0 12px var(--cyber-glow-red) !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    color: #fff !important;
}

.btn-danger::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
    opacity: 0;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff2a7e, var(--cyber-red)) !important;
    box-shadow: 0 0 22px var(--cyber-red), 0 0 35px rgba(255, 0, 96, 0.4) !important;
    transform: translateY(-2px);
}

.btn-danger:hover::after {
    left: 125%;
    opacity: 1;
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-outline-light {
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    color: var(--cyber-cyan) !important;
    background: rgba(0, 240, 255, 0.03) !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 20px;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.1);
    transition: all 0.25s ease !important;
}

.btn-outline-light:hover {
    background: rgba(0, 240, 255, 0.12) !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px var(--cyber-glow-cyan);
    border-color: var(--cyber-cyan) !important;
    transform: translateY(-2px);
}

/* Tables */
.table-responsive {
    border-radius: 0 0 12px 12px;
}

.table-dark {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    margin-bottom: 0;
}

.table-dark th {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--cyber-cyan) !important;
    background: rgba(0, 240, 255, 0.04) !important;
    border-bottom: 2px solid rgba(0, 240, 255, 0.25) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 15px 20px;
}

.table-dark td {
    background: transparent !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    color: #e2e8f0 !important;
    padding: 14px 20px;
    border-bottom-color: rgba(255, 255, 255, 0.04) !important;
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover td {
    background: rgba(0, 240, 255, 0.04) !important;
    color: #ffffff !important;
}

/* Badges */
.badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 6px 12px !important;
    border-radius: 4px;
    text-transform: uppercase;
}

.text-bg-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1 !important;
}

.badge.bg-success, .text-bg-success {
    background-color: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgb(16, 185, 129);
    color: rgb(52, 211, 153) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge.bg-danger, .text-bg-danger {
    background-color: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgb(239, 68, 68);
    color: rgb(248, 113, 113) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Alerts */
.alert {
    background: rgba(15, 15, 30, 0.8);
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.alert-success {
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: rgb(52, 211, 153);
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1);
}

.alert-danger {
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: rgb(248, 113, 113);
    box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.1);
}

/* Stats Dashboard widgets */
.display-6.text-danger {
    color: var(--cyber-red) !important;
    text-shadow: 0 0 15px var(--cyber-glow-red);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700 !important;
}

/* SweetAlert2 Cyber Customization */
.swal2-popup {
    background: rgba(12, 10, 24, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--cyber-red) !important;
    box-shadow: 0 0 35px rgba(255, 0, 96, 0.35) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-family: 'Rajdhani', sans-serif;
}

.swal2-title {
    font-family: 'Orbitron', sans-serif !important;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.swal2-html-container {
    color: #cbd5e1 !important;
    font-size: 1.2rem !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, var(--cyber-red), #b90044) !important;
    border-radius: 6px !important;
    box-shadow: 0 0 12px var(--cyber-glow-red) !important;
    font-family: 'Orbitron', sans-serif !important;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    letter-spacing: 0.05em !important;
}

.swal2-cancel {
    border-radius: 6px !important;
    font-family: 'Orbitron', sans-serif !important;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    letter-spacing: 0.05em !important;
}

/* Authentication pages wrapper */
.min-vh-100 {
    position: relative;
    overflow: hidden;
}

.min-vh-100::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 0, 96, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    top: 20%;
    left: 20%;
    pointer-events: none;
}

.min-vh-100::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(0, 240, 255, 0.12);
    border-radius: 50%;
    filter: blur(80px);
    bottom: 20%;
    right: 20%;
    pointer-events: none;
}
