/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* MetaMagic Dark Executive Theme */
* {
    font-family: 'Outfit', sans-serif;
}

.font-mono {
    font-family: 'Space Mono', monospace;
}

/* Glow effects */
.glow-coral {
    box-shadow: 0 0 40px -10px rgba(240, 85, 69, 0.5);
}

.glow-coral-sm {
    box-shadow: 0 0 20px -5px rgba(240, 85, 69, 0.4);
}

.glow-success {
    box-shadow: 0 0 20px -5px rgba(16, 185, 129, 0.4);
}

/* Animated gradient border */
@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.card-glow {
    position: relative;
    background: linear-gradient(135deg, #1A1E28 0%, #12151C 100%);
    border-radius: 16px;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(240, 85, 69, 0.3) 0%, transparent 50%, rgba(240, 85, 69, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.card-glow > * {
    position: relative;
    z-index: 1;
}

/* Entrance animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-slide {
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.animate-fade {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scale {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Hover state */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px -10px rgba(240, 85, 69, 0.3);
}

/* Number counter effect styling */
.stat-number {
    background: linear-gradient(135deg, #FFFFFF 0%, #A0AEC0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse dot */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

/* Custom Tailwind Colors */
.bg-dark-900 { background-color: #0A0C10; }
.bg-dark-800 { background-color: #12151C; }
.bg-dark-700 { background-color: #1A1E28; }
.bg-dark-600 { background-color: #242936; }
.bg-dark-500 { background-color: #2E3444; }

.bg-coral-50 { background-color: #FFF5F3; }
.bg-coral-100 { background-color: #FFE8E3; }
.bg-coral-200 { background-color: #FFD5CC; }
.bg-coral-300 { background-color: #FFB5A8; }
.bg-coral-400 { background-color: #FF8A75; }
.bg-coral-500 { background-color: #F05545; }
.bg-coral-600 { background-color: #DC3D2D; }
.bg-coral-700 { background-color: #B92D1F; }

.bg-coral-500\/10 { background-color: rgba(240, 85, 69, 0.1); }
.bg-coral-500\/20 { background-color: rgba(240, 85, 69, 0.2); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.bg-dark-600\/50 { background-color: rgba(36, 41, 54, 0.5); }
.bg-dark-700\/30 { background-color: rgba(26, 30, 40, 0.3); }
.bg-dark-700\/50 { background-color: rgba(26, 30, 40, 0.5); }
.bg-dark-800\/80 { background-color: rgba(18, 21, 28, 0.8); }

.hover\:bg-dark-700\/30:hover { background-color: rgba(26, 30, 40, 0.3); }
.hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05); }

.text-coral-400 { color: #FF8A75; }
.text-coral-500 { color: #F05545; }
.text-coral-600 { color: #DC3D2D; }

.text-emerald-400 { color: #34D399; }

.border-coral-500\/20 { border-color: rgba(240, 85, 69, 0.2); }
.border-coral-500\/30 { border-color: rgba(240, 85, 69, 0.3); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }

.hover\:border-coral-500\/30:hover { border-color: rgba(240, 85, 69, 0.3); }
.hover\:border-white\/20:hover { border-color: rgba(255, 255, 255, 0.2); }

.from-coral-400 { --tw-gradient-from: #FF8A75; }
.from-coral-500 { --tw-gradient-from: #F05545; }
.from-coral-600 { --tw-gradient-from: #DC3D2D; }
.to-coral-600 { --tw-gradient-to: #DC3D2D; }
.to-coral-700 { --tw-gradient-to: #B92D1F; }

.placeholder-gray-500::placeholder { color: #6B7280; }
.hover\:text-coral-400:hover { color: #FF8A75; }
.hover\:text-coral-300:hover { color: #FFB5A8; }
.hover\:text-emerald-400:hover { color: #34D399; }

.focus\:ring-coral-500:focus {
    --tw-ring-color: #F05545;
    box-shadow: 0 0 0 3px rgba(240, 85, 69, 0.3);
}
.focus\:ring-2:focus {
    --tw-ring-offset-shadow: 0 0 0 0 transparent;
    --tw-ring-shadow: 0 0 0 3px var(--tw-ring-color, rgba(240, 85, 69, 0.3));
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.hover\:bg-dark-600:hover { background-color: #242936; }

/* Custom Checkbox */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background-color: #1A1E28;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.custom-checkbox:hover {
    border-color: rgba(240, 85, 69, 0.5);
    box-shadow: 0 0 10px rgba(240, 85, 69, 0.2);
}

.custom-checkbox:checked {
    background: linear-gradient(135deg, #F05545 0%, #DC3D2D 100%);
    border-color: #F05545;
    box-shadow: 0 0 15px rgba(240, 85, 69, 0.4);
    position: relative;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.custom-checkbox:focus {
    outline: none;
    border-color: #F05545;
    box-shadow: 0 0 0 3px rgba(240, 85, 69, 0.2);
}
