@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Absolute Midnight Design Tokens */
    --bg-color: #000000;
    --surface-color: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --accent-color: #36fceb;
    --accent-dark: #2bc8b9;
    --accent-glow: rgba(54, 252, 235, 0.4);
    --border-color: rgba(255, 255, 255, 0.12);
    --input-bg: #1a1a1a;
    --input-border: #333333;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.9);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-radius: 16px;
}

/* Mobile Header for Admin */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1500;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: var(--transition-base);
}

/* Professional Input Styling for Dark Surface */
.form-control,
.form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(54, 252, 235, 0.15);
    outline: none;
}

.input-group-text {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-secondary) !important;
    border-radius: 10px 0 0 10px !important;
}

/* Search Input Group */
.search-input-group {
    max-width: 280px;
    width: 100%;
}

.search-input-group .form-control {
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    padding-left: 0.5rem;
}

.search-input-group .input-group-text {
    border-right: none !important;
    padding-right: 0.5rem;
}

/* DSGC Logo Styling */
.dsgc-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-base);
}

.dsgc-logo:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Premium Navigation */
.navbar-professional {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}



.nav-link-prof {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.nav-link-prof:hover,
.nav-link-prof.active {
    color: var(--accent-color);
    background-color: rgba(54, 252, 235, 0.05);
}

/* Base Card Styling */
.prof-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
}

.prof-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(54, 252, 235, 0.2);
}

/* Glass Card Effect for Footer */
.glass-card {
    background: rgba(13, 13, 13, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Buttons */
.btn-prof {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-prof-primary {
    background-color: var(--accent-color);
    color: #000;
    border: none;
}

.btn-prof-primary:hover {
    background-color: #ffffff;
    color: #000;
    transform: translateY(-1px);
}

/* Utilities */
.ls-wide {
    letter-spacing: 1.5px;
}

.tracking-tight {
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .mobile-px-0 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mobile-mb-4 {
        margin-bottom: 2rem !important;
    }

    .mobile-gap-3 {
        gap: 1rem !important;
    }
}

/* Professional Tables optimized for Dark */
.prof-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.prof-table th {
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.prof-table td {
    padding: 1.2rem 1rem;
    background-color: var(--surface-color);
}

.prof-table tr {
    transition: var(--transition-base);
}

.prof-table tr:hover td {
    background-color: var(--input-bg);
}

.prof-table tr td:first-child {
    border-radius: 10px 0 0 10px;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.prof-table tr td:last-child {
    border-radius: 0 10px 10px 0;
    border-right: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Responsive Adjustments & Critical UI Fixes */
@media (max-width: 991px) {
    :root {
        --sidebar-width: 0px;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 90px 15px 30px 15px !important;
    }

    .display-3 {
        font-size: 2.2rem !important;
        letter-spacing: -1px;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }

    /* Logo Responsive Sizing - Tablet */
    .dsgc-logo {
        height: 38px;
    }

    .map-prism {
        aspect-ratio: 16 / 9;
        border-radius: 16px;
        min-height: 380px;
        margin-top: 10px;
    }

    .map-prism-overlay {
        padding: 2.5rem;
        background: linear-gradient(0deg, #000 30%, transparent 100%);
    }

    .hero-stats {
        max-width: 100% !important;
        overflow-x: auto;
        padding-top: 15px !important;
        margin-top: 15px !important;
        gap: 1.5rem !important;
        scrollbar-width: none;
    }

    .hero-stats::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-professional {
        padding: 0.75rem 0;
    }

    /* Logo Responsive Sizing - Mobile */
    .dsgc-logo {
        height: 32px;
    }

    .navbar-brand .fs-4 {
        font-size: 1rem !important;
    }

    .prof-card {
        padding: 1.5rem !important;
    }

    /* Hero Section Mobile Optimization */
    .map-prism {
        min-height: 500px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .map-prism-overlay {
        padding: 1.5rem;
        background: linear-gradient(0deg, #000 40%, transparent 100%);
    }

    .map-prism-overlay h6 {
        font-size: 0.65rem !important;
    }

    .map-prism-overlay h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-stats {
        flex-direction: column !important;
        gap: 1.5rem !important;
        max-width: 100% !important;
        padding-top: 1.5rem !important;
        margin-top: 1.5rem !important;
        align-items: stretch !important;
    }

    .stat-group {
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }

    .stat-group span {
        font-size: 1.3rem !important;
    }

    .stat-group small {
        font-size: 0.7rem !important;
    }

    /* Status and info badges mobile */
    .status-badge,
    .server-info,
    .copy-ip {
        font-size: 0.7rem !important;
        padding: 5px 12px !important;
    }

    /* Button adjustments */
    .btn-prof {
        padding: 0.65rem 1.2rem !important;
        font-size: 0.85rem !important;
        width: 100%;
        justify-content: center;
    }

    /* Standard Table Display (Horizontal Scroll) */
    .prof-table {
        min-width: 700px;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
}

@media (max-width: 991px) {
    .navbar-professional .navbar-nav {
        padding: 15px 0;
        align-items: center !important;
        gap: 5px;
        width: 100%;
        text-align: center;
    }

    .nav-link-prof {
        padding: 10px 20px;
        display: inline-block;
    }

    .navbar-search {
        margin-left: 0 !important;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .search-input-group {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Logo Responsive Sizing - Extra Small */
    .dsgc-logo {
        height: 28px;
    }

    /* Hero Section Extra Small */
    .map-prism {
        min-height: 520px;
    }

    .map-prism-overlay {
        padding: 1.25rem;
    }

    .map-prism-overlay h1 {
        font-size: 1.3rem !important;
    }

    .display-3 {
        font-size: 1.8rem !important;
    }

    .page-header-flex h2 {
        font-size: 1.4rem;
    }

    .avatar-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.7rem !important;
    }
}

/* Page Header Utility */
.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

@media (max-width: 576px) {
    .page-header-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.5rem;
    }
}

/* Fix for horizontal scroll on tables */
.table-responsive {
    border: none;
    -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* ===========================
   NEW HERO SECTION STYLES
   =========================== */

.hero-section {
    width: 100%;
}

.hero-container {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
    padding: 2.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(54, 252, 235, 0.08);
    border: 1px solid rgba(54, 252, 235, 0.2);
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 1rem;
}

.live-badge span {
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Hero Content */
.hero-content {
    flex: 1;
}

.hero-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.hero-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Status Row */
.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-item small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-item span {
    display: block;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-overlay {
        padding: 1.5rem;
        min-height: 500px;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.85) 100%);
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.65rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .stat-item {
        width: 100%;
    }

    .stat-item span {
        font-size: 1.3rem;
    }

    .status-row {
        gap: 0.5rem;
    }

    .status-badge,
    .server-info,
    .copy-ip {
        font-size: 0.7rem !important;
        padding: 5px 12px !important;
    }
}

@media (max-width: 576px) {
    .hero-overlay {
        padding: 1.25rem;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.9) 100%);
    }

    .hero-title {
        font-size: 1.3rem;
    }

    /*.hero-container {*/
    /*    min-height: 550px;*/
    /*}*/

    .stats-grid {
        gap: 1.25rem;
    }
}

/* ===========================
   END NEW HERO SECTION
   =========================== */

/* Premium UI Enhancements */

/* Hero Section Advanced Styling */
.map-prism {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.map-prism-overlay {
    position: relative;
    z-index: 2;
    padding: 3rem;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(54, 252, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54, 252, 235, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
}

/* Live Indicator Premium Styling */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(54, 252, 235, 0.08);
    border: 1px solid rgba(54, 252, 235, 0.2);
    border-radius: 20px;
    margin-bottom: 1rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Status Badges */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.status-online {
    background: rgba(54, 252, 235, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(54, 252, 235, 0.2);
}

.status-offline {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.status-updating {
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.2);
}

/* Server Info Styling */
.server-info {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Copy IP Button */
.copy-ip {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
}

.copy-ip:hover {
    background: var(--accent-color);
    color: #000;
}

/* Rank Badge Styling */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-1,
.rank-2,
.rank-3 {
    background: rgba(54, 252, 235, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Player Avatar */
.player-avatar {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
}

/* Kill Progress Bar */
.kill-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.kill-progress-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.5s ease;
}