/* ============================================
   QDINX COSMIC THEME - CSSWEETSWEET V2
   ============================================ */

/* Color Palette Variables */
:root {
  /* Primary Colors */
  --neon-cyan: #00D9FF;
  --electric-blue: #1E90FF;
  --fire-orange: #FF6B00;
  
  /* Accents */
  --deep-purple: #6B1EFF;
  --matrix-green: #00FF41;
  
  /* Backgrounds */
  --bg-dark: #0A0E27;
  --bg-card: #1A1A3E;
  
  /* Text */
  --text-primary: #00D9FF;
  --text-secondary: #FFFFFF;
  
  /* Gradients */
  --gradient-cosmic: linear-gradient(135deg, var(--deep-purple), var(--neon-cyan));
  --gradient-fire: linear-gradient(135deg, var(--fire-orange), var(--electric-blue));
}

/* ============================================
   BASE STYLES
   ============================================ */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    text-align: center;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-family: 'Inter', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

body {
    background: url('dinxback.jpg') no-repeat center center fixed;
    background-size: cover;
}

body::after {
    content: "";
    position: fixed;
    top: 20px; 
    right: 20px;
    width: 100px;
    height: 100px;
    background: url('ko-tag1.png') no-repeat center center;
    background-size: contain;
    z-index: 10;
}

/* ============================================
   QDINX SPECIFIC ELEMENTS
   ============================================ */

#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    object-fit: contain;
    filter: blur(0px) brightness(100%);
    z-index: -1;
    display: block;
    mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
}

.logo {
    width: 600px;
    height: auto;
    transition: transform 0.3s ease-in-out;
    margin: 20px;
    padding: 20px;
    display: block;
    position: relative;
    margin-bottom: 20px;
}

.logo:hover {
    transform: scale(1.1);
}

.content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

h3 {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    padding: 10px;
    display: inline-block;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer {
    position: fixed;
    background-color: rgba(107, 30, 255, 0.3); /* Deep purple with transparency */
    color: var(--neon-cyan);
    height: 35px;
    width: 100%;
    bottom: 0;
    text-align: center;
    font-size: 16px;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.footer-image {
    position: absolute;
    bottom: 10px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    right: 20px;
}

footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--matrix-green);
    text-shadow: 0 0 10px var(--matrix-green);
}

/* ============================================
   AURORA & STARFIELD EFFECTS
   ============================================ */

.aurora-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.aurora {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 30% 70%, rgba(0, 217, 255, 0.25) 0%, transparent 20%);
    mix-blend-mode: screen;
    animation: aurora-drift 25s ease-in-out infinite;
    filter: blur(25px);
    opacity: 0.7;
}

.aurora-strong::before {
    content: "";
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle at 70% 30%, rgba(107, 30, 255, 0.3) 0%, transparent 40%);
    mix-blend-mode: screen;
    animation: aurora-drift 35s ease-in-out infinite reverse;
    filter: blur(10px);
    opacity: 0.4;
}

.aurora-strong::after {
    content: "";
    position: absolute;
    inset: -75%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.2) 0%, transparent 90%);
    mix-blend-mode: overlay;
    animation: aurora-drift 10s ease-in-out infinite;
    filter: blur(10px);
    opacity: 0.3;
}

@keyframes aurora-drift {
    0%   { transform: translate(0, 0) scale(1.2); }
    25%  { transform: translate(15%, -25%) scale(1.3); }
    50%  { transform: translate(-20%, 20%) scale(1.1); }
    75%  { transform: translate(25%, 10%) scale(1.4); }
    100% { transform: translate(0, 0) scale(1.2); }
}

.stars-layer {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(var(--neon-cyan) 1px, transparent 1px),
        radial-gradient(var(--electric-blue) 1px, transparent 1px),
        radial-gradient(var(--matrix-green) 1.5px, transparent 1.5px);
    background-size: 60px 60px, 40px 40px, 80px 80px;
    background-position: 0 0, 30px 30px, 50px 50px;
    opacity: 0.2;
}

.stars-1 { animation: star-zoom 40s linear infinite; opacity: 0.1; }
.stars-2 { animation: star-zoom 30s linear infinite reverse; opacity: 0.2; filter: blur(1px); }
.stars-3 { animation: star-zoom 20s linear infinite; opacity: 0.3; }

@keyframes star-zoom {
    0%   { transform: scale(0.5) translateZ(0); opacity: 0; }
    10%  { opacity: 0.3; }
    90%  { opacity: 0.5; }
    100% { transform: scale(4) translateZ(0); opacity: 0; }
}

/* ============================================
   PAGE CONTENT CONTAINERS
   ============================================ */

/* Main container for app pages */
.qdinx-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Glass-morphism cards */
.qdinx-card {
    background: rgba(26, 26, 62, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.qdinx-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 12px 48px rgba(0, 217, 255, 0.2);
}

/* Headers */
.qdinx-header {
    background: var(--gradient-cosmic);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 0 0 24px 24px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(107, 30, 255, 0.3);
}

.qdinx-header h1 {
    color: var(--text-secondary);
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.qdinx-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin: 0;
}

/* Buttons */
.qdinx-btn {
    background: var(--gradient-cosmic);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(107, 30, 255, 0.3);
}

.qdinx-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 30, 255, 0.5);
}

.qdinx-btn-fire {
    background: var(--gradient-fire);
}

.qdinx-btn-success {
    background: linear-gradient(135deg, var(--matrix-green), var(--neon-cyan));
}

/* Inputs */
.qdinx-input {
    background: rgba(26, 26, 62, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.qdinx-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

/* Tables */
.qdinx-table {
    width: 100%;
    background: rgba(26, 26, 62, 0.7);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.qdinx-table thead {
    background: rgba(107, 30, 255, 0.3);
}

.qdinx-table th {
    color: var(--neon-cyan);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.qdinx-table td {
    padding: 1rem;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    color: var(--text-secondary);
}

.qdinx-table tbody tr:hover {
    background: rgba(0, 217, 255, 0.05);
}

/* Badges */
.qdinx-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.qdinx-badge-success {
    background: rgba(0, 255, 65, 0.2);
    color: var(--matrix-green);
    border: 1px solid var(--matrix-green);
}

.qdinx-badge-danger {
    background: rgba(255, 107, 0, 0.2);
    color: var(--fire-orange);
    border: 1px solid var(--fire-orange);
}

.qdinx-badge-info {
    background: rgba(0, 217, 255, 0.2);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

/* Status indicators */
.qdinx-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.qdinx-status-dot.active {
    background: var(--matrix-green);
    box-shadow: 0 0 10px var(--matrix-green);
    animation: pulse 2s ease-in-out infinite;
}

.qdinx-status-dot.inactive {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation Tabs */
.qdinx-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid rgba(0, 217, 255, 0.2);
    margin-bottom: 2rem;
}

.qdinx-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.qdinx-tab:hover {
    color: var(--neon-cyan);
}

.qdinx-tab.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

/* Charts and Visualizations */
.qdinx-chart-container {
    background: rgba(26, 26, 62, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 217, 255, 0.15);
}

/* Grid Layouts */
.qdinx-grid {
    display: grid;
    gap: 1.5rem;
}

.qdinx-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.qdinx-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.qdinx-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Utility Classes */
.qdinx-glow {
    text-shadow: 0 0 10px currentColor;
}

.qdinx-glow-cyan {
    text-shadow: 0 0 15px var(--neon-cyan);
}

.qdinx-glow-purple {
    text-shadow: 0 0 15px var(--deep-purple);
}

.qdinx-glow-green {
    text-shadow: 0 0 15px var(--matrix-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .qdinx-header h1 {
        font-size: 2rem;
    }
    
    .qdinx-container {
        padding: 1rem;
    }
    
    .qdinx-grid-2,
    .qdinx-grid-3,
    .qdinx-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}

/* Selection */
::selection {
    background: rgba(0, 217, 255, 0.3);
    color: white;
}
