/* modern.css - Design System for CSWeb Modernization */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
    /* Color Palette - Cyberpunk / Tech */
    --color-bg-dark: #0a0b10;
    --color-bg-panel: rgba(20, 22, 31, 0.7);
    --color-primary: #00f3ff;
    /* Neon Cyan */
    --color-secondary: #bc13fe;
    /* Neon Purple */
    --color-accent: #2de2e6;
    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-border: rgba(0, 243, 255, 0.2);
    --color-danger: #ff2a6d;
    --color-success: #05ffa1;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glow-primary: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --glow-text: 0 0 5px rgba(0, 243, 255, 0.8);

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 78px;
    --header-height: 70px;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
}

/* Form Elements */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    background: rgba(10, 11, 16, 0.8) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text-main) !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Exo 2', sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

label {
    color: var(--color-text-muted);
    font-size: 0.9em;
    margin-bottom: 5px;
    display: block;
}

/* Buttons */
button,
.btn,
.login {
    background: linear-gradient(45deg, transparent 5%, var(--color-primary) 5%) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: 0 !important;
    border-radius: 4px !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 24px !important;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 6px 0px 0px 0px var(--color-secondary) !important;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
    position: relative;
    overflow: hidden;
}

button:hover,
.btn:hover,
.login:hover {
    background: linear-gradient(45deg, transparent 5%, var(--color-secondary) 5%) !important;
    box-shadow: 6px 0px 0px 0px var(--color-primary) !important;
    color: #fff !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Table Style Override (Bootstrap) */
.table {
    border-color: var(--color-border) !important;
    color: var(--color-text-main) !important;
}

.table thead th {
    background-color: rgba(0, 243, 255, 0.1) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.table td {
    border-color: rgba(255, 255, 255, 0.05) !important;
    vertical-align: middle !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 243, 255, 0.05) !important;
    color: var(--color-text-main) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Futuristic Background for Login */
.bg-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- Sidebar Modernization Overrides --- */

.sidebar {
    background: rgba(17, 16, 29, 0.85) !important;
    /* Semi-transparent dark */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-right: 1px solid rgba(0, 243, 255, 0.1);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
}

.sidebar .logo-details .logo_name {
    color: var(--color-primary);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.sidebar .nav-links li:hover {
    background: rgba(0, 243, 255, 0.1) !important;
    box-shadow: inset 5px 0 0 0 var(--color-primary);
}

.sidebar .nav-links li i {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.sidebar .nav-links li:hover i {
    color: var(--color-primary);
    text-shadow: 0 0 8px var(--color-primary);
}

.sidebar .nav-links li a .link_name {
    color: var(--color-text-main);
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 0.5px;
}

.sidebar .nav-links li:hover a .link_name {
    color: var(--color-text-main);
}

/* Submenu Styling */
.sidebar .nav-links li .sub-menu {
    background: rgba(10, 11, 16, 0.95) !important;
    border-left: 1px solid var(--color-border);
}

.sidebar .nav-links li .sub-menu a {
    color: var(--color-text-muted) !important;
}

.sidebar .nav-links li .sub-menu a:hover {
    color: var(--color-primary) !important;
    background: transparent !important;
    padding-left: 15px;
    /* Slide effect */
}

/* Profile Section */
.sidebar .profile-details {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar .profile-details .profile_name {
    color: var(--color-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
}

.sidebar .profile-details .job {
    color: var(--color-text-muted);
}

/* Home Section (Main Content) */
.home-section {
    background: var(--color-bg-dark) !important;
    /* Override #222222 */
}

.home-section .home-content {
    background: rgba(17, 16, 29, 0.85) !important;
    /* Match sidebar */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-main) !important;
}

.home-section .home-content .bx-menu,
.home-section .home-content .text {
    color: var(--color-text-main) !important;
}

/* Cards inside Main Content (if any) */
.card {
    background: rgba(20, 22, 31, 0.6) !important;
    border: 1px solid rgba(0, 243, 255, 0.1) !important;
    color: var(--color-text-main) !important;
}

.card-header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1) !important;
    font-family: 'Orbitron', sans-serif;
    color: var(--color-primary) !important;
}
/* Header Logo Style */
.home-section .home-content .header-logo {
    margin-left: auto; /* Push to the right */
    height: 80%; /* Maintain bar height (with some padding) */
    width: auto;
    margin-right: 20px;
    object-fit: contain;
}

/* --- Dashboard / Main Page Styles --- */

.dashboard-container {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dash-card {
    background: rgba(20, 22, 31, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dash-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.15);
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    opacity: 0.5;
}

.dash-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.dash-stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 10px 0;
    font-family: 'Orbitron', sans-serif;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Exo 2', sans-serif;
}

.action-btn:hover {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 10px var(--color-primary);
}

.welcome-banner {
    grid-column: 1 / -1;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1) 0%, rgba(188, 19, 254, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.welcome-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

