/* Enhanced effects for modern theme */

/* Enhanced progress bars */
.progress {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    height: 12px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.4), transparent);
    animation: progress-scan 2s infinite;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    height: 100%;
    transition: width 0.6s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    animation: progress-glow 1.5s ease-in-out infinite;
}

@keyframes progress-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes progress-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Holographic elements */
.hologram {
    position: relative;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow:
        0 0 20px rgba(0, 255, 65, 0.2),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    animation: hologram-flicker 4s infinite;
}

.hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: hologram-scan 3s infinite;
}

@keyframes hologram-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes hologram-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Data visualization elements */
.data-stream {
    background: rgba(0, 0, 0, 0.9);
    border-left: 3px solid var(--primary-color);
    padding: 15px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.data-stream::before {
    content: '> ';
    color: var(--primary-color);
    font-weight: bold;
}

.data-stream::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
    animation: data-pulse 1s infinite;
}

@keyframes data-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Alert enhancements */
.alert {
    position: relative;
    padding: 20px;
    border-left: 4px solid;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    margin: 20px 0;
    animation: alert-glow 2s infinite alternate;
}

.alert-success {
    border-color: var(--success-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.alert-warning {
    border-color: var(--warning-color);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
}

.alert-danger {
    border-color: var(--danger-color);
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.3);
    animation: alert-critical 1s infinite;
}

.alert-info {
    border-color: var(--info-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

@keyframes alert-glow {
    0% { box-shadow: 0 0 15px rgba(0, 255, 65, 0.3); }
    100% { box-shadow: 0 0 25px rgba(0, 255, 65, 0.5); }
}

@keyframes alert-critical {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 0, 64, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 64, 0.7); }
}

/* Enhanced buttons */
.btn-cyber {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-cyber:hover::before {
    left: 100%;
}

.btn-cyber:hover {
    color: #000;
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    text-shadow: none;
}

/* Scan line effect */
.scan-line {
    position: relative;
    overflow: hidden;
}

.scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scan-line-move 3s infinite;
}

@keyframes scan-line-move {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Stats display */
.stats-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
    animation: stat-rotate 10s linear infinite;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    position: relative;
    z-index: 1;
}

@keyframes stat-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}