:root {
    --bg-dark: #0f111a;
    --primary-color: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --success-color: #10b981;
    --success-glow: rgba(16, 185, 129, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 1rem;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 40vw; height: 40vw;
    max-width: 400px; max-height: 400px;
    background: var(--primary-glow);
    top: -10%; left: -10%;
}

.orb-2 {
    width: 30vw; height: 30vw;
    max-width: 300px; max-height: 300px;
    background: var(--success-glow);
    bottom: 10%; right: -10%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.app-title {
    font-weight: 700;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    margin-bottom: 0.2rem;
}

.app-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 0;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    padding: 1rem 1.25rem;
}

.glass-panel-inner {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.glass-input-group {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.search-icon-bg {
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--glass-border);
    border-right: none;
    padding-left: 1rem;
}

.custom-input {
    background-color: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid var(--glass-border) !important;
    border-left: none !important;
    color: var(--text-main) !important;
    font-size: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.custom-input:focus {
    box-shadow: none !important;
    background-color: rgba(30, 41, 59, 0.95) !important;
}
.custom-input::placeholder { color: var(--text-muted); }

.custom-reset-btn {
    background: linear-gradient(135deg, #475569, #334155);
    border: 1px solid var(--glass-border);
    border-left: none;
    color: #fff;
    transition: all 0.3s ease;
}
.custom-reset-btn:hover {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
}

/* DataTables Overrides - CRITICAL FOR DARK THEME */
table.dataTable {
    border-collapse: collapse !important;
}
table.dataTable tbody tr {
    background-color: transparent !important;
}
table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
    background-color: rgba(255, 255, 255, 0.02) !important;
}
table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-main) !important;
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    padding: 0.2em 0.6em !important;
    margin-left: 2px !important;
    transition: all 0.2s ease;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px var(--primary-glow);
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: var(--glass-border) !important;
}
.dataTables_wrapper .dataTables_info {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    padding-top: 0.5rem;
}

table.dataTable.no-footer { border-bottom: none !important; }

.custom-table {
    color: var(--text-main);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.custom-table thead {
    display: none !important;
}
.custom-table td {
    background: transparent !important;
    padding: 0.6rem 0.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    font-size: 0.95rem;
}
.custom-table tbody tr:last-child td { border-bottom: none; }
.custom-table tbody tr:hover td { background: rgba(255,255,255,0.03) !important; }

.copy-btn {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
}
.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #34d399, var(--success-color));
}

.custom-toast {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 8px;
    border: 1px solid var(--glass-border) !important;
}
.custom-toast.text-bg-success { background: rgba(16, 185, 129, 0.95) !important; }
.custom-toast.text-bg-danger { background: rgba(239, 68, 68, 0.95) !important; }

@media (max-width: 768px) {
    .glass-panel { padding: 0.75rem 1rem; border-radius: 12px; }
    .app-title { font-size: 1.8rem; }
    .custom-input { font-size: 0.95rem; }
    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 200px; height: 200px; }
}

.glow-btn-warning {
    color: #f59e0b;
    border-color: #f59e0b;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.2rem 0.8rem;
    font-size: 0.85rem;
}
.glow-btn-warning:hover {
    background-color: #f59e0b;
    color: #000;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
