/* Neural Network Inspired Components - 2026 Professional Design */

/* Advanced Component Library */
:root {
    /* Neural Network Color Palette */
    --neural-violet: #8b5cf6;
    --neural-indigo: #6366f1;
    --neural-blue: #3b82f6;
    --neural-cyan: #06b6d4;
    --neural-teal: #14b8a6;
    --neural-emerald: #10b981;
    --neural-lime: #84cc16;
    --neural-amber: #f59e0b;
    --neural-orange: #f97316;
    --neural-red: #ef4444;
    --neural-pink: #ec4899;
    --neural-rose: #f43f5e;
    
    /* Gradient Combinations */
    --gradient-neural-primary: linear-gradient(135deg, var(--neural-indigo) 0%, var(--neural-violet) 100%);
    --gradient-neural-success: linear-gradient(135deg, var(--neural-emerald) 0%, var(--neural-teal) 100%);
    --gradient-neural-warning: linear-gradient(135deg, var(--neural-amber) 0%, var(--neural-orange) 100%);
    --gradient-neural-danger: linear-gradient(135deg, var(--neural-red) 0%, var(--neural-pink) 100%);
    --gradient-neural-info: linear-gradient(135deg, var(--neural-cyan) 0%, var(--neural-blue) 100%);
    
    /* Advanced Shadows with Neural Glow */
    --shadow-neural-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-neural-intense: 0 0 40px rgba(99, 102, 241, 0.4);
    --shadow-success-glow: 0 0 20px rgba(16, 185, 129, 0.3);
    --shadow-warning-glow: 0 0 20px rgba(245, 158, 11, 0.3);
    --shadow-danger-glow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Enhanced Dashboard Cards */
.dashboard-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neural-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        var(--shadow-neural-glow);
    backdrop-filter: blur(4px);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient-neural-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-neural-glow);
    transition: all 0.3s ease;
}

.dashboard-card:hover .dashboard-card-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--shadow-neural-intense);
}

.dashboard-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.dashboard-card-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-neural-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.dashboard-card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

/* Advanced Data Tables */
.neural-table {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.neural-table thead {
    background: var(--gradient-neural-primary);
    position: relative;
}

.neural-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%);
}

.neural-table th {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.5rem 1.25rem;
    border: none;
    position: relative;
}

.neural-table td {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    vertical-align: middle;
    transition: all 0.2s ease;
}

.neural-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neural-table tbody tr:hover {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    transform: translateX(2px);
    box-shadow: 
        6px 0 0 0 var(--neural-indigo),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Neural Buttons with Advanced Effects */
.btn-neural {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 16px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-neural::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-neural:hover::before {
    width: 300px;
    height: 300px;
}

.btn-neural:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-neural:active {
    transform: translateY(-1px);
}

.btn-neural-primary {
    background: var(--gradient-neural-primary);
    color: white;
    box-shadow: var(--shadow-neural-glow);
}

.btn-neural-success {
    background: var(--gradient-neural-success);
    color: white;
    box-shadow: var(--shadow-success-glow);
}

.btn-neural-warning {
    background: var(--gradient-neural-warning);
    color: white;
    box-shadow: var(--shadow-warning-glow);
}

.btn-neural-danger {
    background: var(--gradient-neural-danger);
    color: white;
    box-shadow: var(--shadow-danger-glow);
}

.btn-neural-info {
    background: var(--gradient-neural-info);
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* Advanced Form Controls */
.form-neural {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-neural input,
.form-neural select,
.form-neural textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.form-neural input:focus,
.form-neural select:focus,
.form-neural textarea:focus {
    outline: none;
    border-color: var(--neural-indigo);
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.06),
        0 0 0 4px rgba(99, 102, 241, 0.1),
        var(--shadow-neural-glow);
    transform: translateY(-2px);
}

.form-neural label {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    padding: 0 0.5rem;
    border-radius: 8px;
}

.form-neural input:focus ~ label,
.form-neural input:not(:placeholder-shown) ~ label,
.form-neural select:focus ~ label,
.form-neural textarea:focus ~ label,
.form-neural textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.875rem;
    color: var(--neural-indigo);
    font-weight: 600;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neural-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-active::before {
    background: var(--neural-emerald);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--neural-amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-pending::before {
    background: var(--neural-amber);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--neural-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-inactive::before {
    background: var(--neural-red);
}

/* Advanced Progress Bars */
.progress-neural {
    height: 12px;
    background: rgba(226, 232, 240, 0.3);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-neural-bar {
    height: 100%;
    background: var(--gradient-neural-primary);
    border-radius: 6px;
    position: relative;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.progress-neural-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

/* Notification Cards */
.notification-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notification-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-neural-primary);
}

.notification-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.notification-success::before {
    background: var(--gradient-neural-success);
}

.notification-warning::before {
    background: var(--gradient-neural-warning);
}

.notification-danger::before {
    background: var(--gradient-neural-danger);
}

/* Floating Action Button */
.fab-neural {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-neural-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.fab-neural:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.2);
}

.fab-neural:active {
    transform: scale(0.95);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .dashboard-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .neural-table th,
    .neural-table td {
        padding: 1rem 0.75rem;
    }
    
    .btn-neural {
        padding: 0.75rem 1.5rem;
        font-size: 0.8125rem;
    }
    
    .fab-neural {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.25rem;
    }
}

/* Dark Mode Adaptations */
@media (prefers-color-scheme: dark) {
    .dashboard-card,
    .neural-table,
    .notification-card {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(71, 85, 105, 0.3);
    }
    
    .dashboard-card-title {
        color: #f8fafc;
    }
    
    .dashboard-card-subtitle {
        color: #94a3b8;
    }
    
    .form-neural input,
    .form-neural select,
    .form-neural textarea {
        background: rgba(30, 41, 59, 0.9);
        border-color: rgba(71, 85, 105, 0.6);
        color: #f8fafc;
    }
    
    .form-neural label {
        color: #94a3b8;
        background: rgba(30, 41, 59, 0.9);
    }
}
