/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* RGB Neon Animations */
@keyframes rgb-border {
    0% { border-color: rgb(0, 255, 255); }
    33% { border-color: rgb(255, 0, 255); }
    66% { border-color: rgb(255, 255, 0); }
    100% { border-color: rgb(0, 255, 255); }
}

@keyframes rgb-glow {
    0% { 
        box-shadow: 0 0 10px rgb(0, 255, 255), 0 0 20px rgb(0, 255, 255), 0 0 30px rgb(0, 255, 255);
    }
    33% { 
        box-shadow: 0 0 10px rgb(255, 0, 255), 0 0 20px rgb(255, 0, 255), 0 0 30px rgb(255, 0, 255);
    }
    66% { 
        box-shadow: 0 0 10px rgb(255, 255, 0), 0 0 20px rgb(255, 255, 0), 0 0 30px rgb(255, 255, 0);
    }
    100% { 
        box-shadow: 0 0 10px rgb(0, 255, 255), 0 0 20px rgb(0, 255, 255), 0 0 30px rgb(0, 255, 255);
    }
}

@keyframes rgb-text {
    0% { color: rgb(0, 255, 255); }
    33% { color: rgb(255, 0, 255); }
    66% { color: rgb(255, 255, 0); }
    100% { color: rgb(0, 255, 255); }
}

@keyframes hue-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Utility Classes */
.neon-border {
    border: 2px solid;
    animation: rgb-border 3s infinite;
}

.neon-glow {
    animation: rgb-glow 3s infinite;
}

.neon-text {
    animation: rgb-text 3s infinite;
}

/* Background Gradients */
.bg-gradient-cyan-magenta {
    background: linear-gradient(45deg, rgb(0, 255, 255), rgb(255, 0, 255));
}

.bg-gradient-yellow-cyan {
    background: linear-gradient(45deg, rgb(255, 255, 0), rgb(0, 255, 255));
}

.bg-gradient-rgb {
    background: linear-gradient(45deg, 
        rgb(0, 255, 255), 
        rgb(255, 0, 255), 
        rgb(255, 255, 0), 
        rgb(0, 255, 255)
    );
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
}

.bg-gradient-green {
    background: linear-gradient(45deg, rgb(0, 255, 0), rgb(0, 255, 255));
}

.bg-gradient-yellow {
    background: linear-gradient(45deg, rgb(255, 255, 0), rgb(0, 255, 255));
}

/* Layout Utilities */
.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.grid {
    display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.m-4 { margin: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* Sizing */
.w-full { width: 100%; }
.w-64 { width: 16rem; }
.h-64 { height: 16rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* Colors */
.bg-black { background-color: #000; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-yellow-600 { background-color: #d97706; }
.bg-yellow-700 { background-color: #b45309; }

.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-700 { color: #374151; }
.text-cyan-400 { color: rgb(0, 255, 255); }
.text-magenta-400 { color: rgb(255, 0, 255); }
.text-yellow-400 { color: rgb(255, 255, 0); }
.text-green-400 { color: #4ade80; }
.text-red-200 { color: #fecaca; }
.text-red-400 { color: #f87171; }
.text-yellow-200 { color: #fef3c7; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }
.border-red-500 { border-color: #ef4444; }
.border-yellow-500 { border-color: #eab308; }
.border-transparent { border-color: transparent; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.blur-3xl { filter: blur(64px); }
.opacity-10 { opacity: 0.1; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-1\/4 { top: 25%; }
.left-1\/4 { left: 25%; }
.bottom-1\/4 { bottom: 25%; }
.right-1\/4 { right: 25%; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Display */
.hidden { display: none; }
.inline-block { display: inline-block; }
.block { display: block; }

/* Flexbox */
.flex-1 { flex: 1 1 0%; }

/* Transitions */
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }

/* Transform */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

/* Hover Effects */
.hover\:bg-gray-600:hover { background-color: #4b5563; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-yellow-700:hover { background-color: #b45309; }
.hover\:text-white:hover { color: #fff; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-cyan-500\/25:hover { box-shadow: 0 10px 15px -3px rgba(0, 255, 255, 0.25); }
.hover\:shadow-green-500\/25:hover { box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.25); }

/* Focus Effects */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }
.focus\:ring-cyan-500:focus { box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.5); }
.focus\:ring-magenta-500:focus { box-shadow: 0 0 0 2px rgba(255, 0, 255, 0.5); }

/* Disabled States */
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* Animations */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Form Styles */
input, select, textarea {
    background-color: #1f2937;
    border: 1px solid #374151;
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

input::placeholder {
    color: #9ca3af;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgb(0, 255, 255);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
}

/* Button Styles */
button {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #374151;
}

th {
    font-weight: 600;
    color: #d1d5db;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgb(0, 255, 255), rgb(255, 0, 255));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgb(255, 0, 255), rgb(255, 255, 0));
}

/* Selection Colors */
::selection {
    background: rgba(0, 255, 255, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 1 / span 1; }
    
    .lg\:grid-cols-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .lg\:col-span-3 { grid-column: span 1 / span 1; }
    
    .neon-border {
        border-width: 1px;
    }
    
    .text-4xl { font-size: 2rem; }
    .text-3xl { font-size: 1.75rem; }
    .text-2xl { font-size: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
}

/* Space utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* Background opacity utilities */
.bg-red-900\/50 { background-color: rgba(127, 29, 29, 0.5); }
.bg-yellow-900\/50 { background-color: rgba(120, 113, 108, 0.5); }
.bg-black { background-color: rgba(0, 0, 0, 0.75); }

/* Additional utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.bg-clip-padding { background-clip: padding-box; }