/**
 * Modern UI Stylesheet
 * PUBG Mobile Tools - Enhanced Design
 */

/* ============================================
   CSS VARIABLES & ROOT STYLES
   ============================================ */
:root {
    /* Background Gradients - Neutral Grey */
    --bg-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #141414 100%);
    --bg-secondary: linear-gradient(135deg, #151515 0%, #1e1e1e 100%);
    --bg-card: rgba(255, 255, 255, 0.03);
    
    /* Accent Colors */
    --accent-gold: #f2aa03;
    --accent-gold-light: #ffbb1f;
    --accent-gold-dark: #d69600;
    --accent-grey: #2a2a2a;
    --accent-grey-light: #3a3a3a;
    --accent-red: #ff006e;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6a6a6a;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 30px rgba(242, 170, 3, 0.3);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(242, 170, 3, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(60, 60, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(40, 40, 40, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #141414 100%);
    z-index: -2;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(242, 170, 3, 0.6), transparent);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.modern-card,
.bg-secondary,
.card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--glass-shadow) !important;
    transition: var(--transition-normal) !important;
}

.modern-card:hover,
.bg-secondary:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(242, 170, 3, 0.2) !important;
    border-color: rgba(242, 170, 3, 0.3) !important;
}

/* Prevent card hover effects on sidebar and navbar */
.sidebar:hover,
.sidebar.bg-secondary:hover,
.navbar:hover,
.navbar.bg-secondary:hover {
    transform: none !important;
    box-shadow: var(--glass-shadow) !important;
    border-color: var(--glass-border) !important;
}

/* ============================================
   MODERN BUTTONS
   ============================================ */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 10px 24px;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary,
.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(242, 170, 3, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 170, 3, 0.4) !important;
}

.btn-outline-primary {
    background: transparent !important;
    border: 2px solid var(--accent-gold) !important;
    color: var(--accent-gold) !important;
}

.btn-outline-primary:hover {
    border-color: var(--accent-gold-light) !important;
}

/* Button Shine Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* ============================================
   SIDEBAR MODERN
   ============================================ */
.sidebar {
    background: #222222 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-right: 1px solid var(--glass-border) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
}
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    position: absolute;
    width: 40px;
    height: 40px;
    object-fit: contain;
    z-index: 1;
}
.sidebar-sticky {
    background: transparent !important;
}

.sidebar .nav-link {
    border-radius: var(--radius-md);
    margin: 4px 8px;
    padding: 12px 16px;
    transition: var(--transition-normal);
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background: rgba(242, 170, 3, 0.1);
    color: var(--accent-gold);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(242, 170, 3, 0.2), rgba(242, 170, 3, 0.1));
    color: var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
}

.sidebar .nav-link i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* ============================================
   NAVBAR MODERN
   ============================================ */
.navbar {
    background: #222222 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1rem 1.5rem !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(242, 170, 3, 0.5));
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: 10px;
    border: 2px solid rgba(10, 10, 10, 0.5);
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-gold-light), var(--accent-gold));
    box-shadow: 0 0 10px rgba(242, 170, 3, 0.5);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(10, 10, 10, 0.5);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(242, 170, 3, 0.4);
    transition: var(--transition-normal);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(242, 170, 3, 0.6);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    padding: 12px 16px;
    transition: var(--transition-normal);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(242, 170, 3, 0.1) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.table thead {
    background: rgba(242, 170, 3, 0.1);
}

.table thead th {
    border: none;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 16px;
}

.table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(242, 170, 3, 0.05);
}

.table tbody td {
    border: none;
    padding: 14px 16px;
    color: var(--text-secondary);
}

/* ============================================
   BADGES & PILLS
   ============================================ */
.badge {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.badge-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: #000;
}

.badge-success {
    background: linear-gradient(135deg, #00d084, #00f5a0);
    color: #000;
}

.badge-danger {
    background: linear-gradient(135deg, #ff006e, #ff4d94);
    color: #fff;
}

.badge-warning {
    background: linear-gradient(135deg, #ffa500, #ffbb33);
    color: #000;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    border-radius: var(--radius-md);
    border: none;
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(0, 208, 132, 0.1);
    border-left: 4px solid #00d084;
    color: #00f5a0;
}

.alert-danger {
    background: rgba(255, 0, 110, 0.1);
    border-left: 4px solid #ff006e;
    color: #ff4d94;
}

.alert-warning {
    background: rgba(255, 165, 0, 0.1);
    border-left: 4px solid #ffa500;
    color: #ffbb33;
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid #00d4ff;
    color: #33ddff;
}

/* ============================================
   TOASTR CUSTOMIZATION
   ============================================ */
#toast-container > div {
    background: rgba(28, 28, 34, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

.toast-success {
    border-left: 4px solid #00d084 !important;
}

.toast-error {
    border-left: 4px solid #ff006e !important;
}

.toast-warning {
    border-left: 4px solid #ffa500 !important;
}

.toast-info {
    border-left: 4px solid #00d4ff !important;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    background: rgba(28, 28, 34, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
}

.modal-title {
    color: var(--accent-gold);
    font-weight: 700;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
}

.modal-backdrop {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(5px);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner-border {
    border-color: rgba(242, 170, 3, 0.2);
    border-top-color: var(--accent-gold);
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */
.dropdown-menu {
   background: rgba(28, 28, 34, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(242, 170, 3, 0.1);
    color: var(--accent-gold);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    height: 12px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: var(--radius-md);
    transition: width 0.6s ease;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.glow {
    box-shadow: 0 0 30px rgba(242, 170, 3, 0.3);
}

.glow:hover {
    box-shadow: 0 0 50px rgba(242, 170, 3, 0.5);
}

.blur-bg {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .modern-card,
    .bg-secondary,
    .card {
        margin-bottom: 15px;
    }
}



/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .parallax-bg,
    .particles-container,
    .back-to-top,
    .sidebar,
    .navbar {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}