/* Shadow Hunter: Inner War - Enhanced Styles */
/* Dark gothic theme with neon accents - keeping beloved design intact */

:root {
    --void-black: #000000;
    --shadow-dark: #0f0f0f;
    --blood-secondary: #1a1a1a;
    --steel-tertiary: #2a2a2a;
    --bone-white: #ffffff;
    --ghost-gray: #cccccc;
    --ash-muted: #999999;
    --crimson-red: #ff0000;
    --blood-crimson: #dc143c;
    --void-purple: #8b00ff;
    --fire-orange: #ff4500;
    --neon-pink: #ff0066;
    --victory-green: #00ff41;
    --danger-red: #ff0000;
    --war-glow: 0 0 20px rgba(255, 0, 102, 0.5);
    --blood-glow: 0 0 30px rgba(255, 0, 0, 0.7);
    --smooth-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: var(--void-black);
    color: var(--bone-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 102, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Screen Management */
.full-screen {
    display: none;
    min-height: 100vh;
    padding: 2rem 1rem;
    animation: fadeIn 0.5s ease-out;
}

.full-screen.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Authentication Interface */
.auth-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: var(--blood-secondary);
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid var(--neon-pink);
    box-shadow: var(--war-glow);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 102, 0.1), transparent);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.war-title {
    text-align: center;
    margin-bottom: 2rem;
}

.war-title h1 {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(45deg, var(--crimson-red), var(--void-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.war-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: var(--fire-orange);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

/* Battle Tabs */
.battle-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    background: var(--steel-tertiary);
    border: 1px solid var(--neon-pink);
}

.battle-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--ghost-gray);
    cursor: pointer;
    transition: var(--smooth-transition);
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.battle-tab.active {
    background: linear-gradient(45deg, var(--crimson-red), var(--blood-crimson));
    color: var(--bone-white);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.battle-tab:hover:not(.active) {
    background: var(--shadow-dark);
    color: var(--bone-white);
}

/* Battle Forms */
.battle-form {
    display: none;
}

.battle-form.active {
    display: block;
}

.input-group {
    margin-bottom: 1.5rem;
}

.battle-input {
    width: 100%;
    padding: 1rem;
    background: var(--steel-tertiary);
    border: 2px solid var(--shadow-dark);
    border-radius: 10px;
    color: var(--bone-white);
    font-size: 1rem;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    transition: var(--smooth-transition);
}

.battle-input:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.3);
    background: var(--shadow-dark);
}

.battle-input::placeholder {
    color: var(--ash-muted);
}

/* War Buttons */
.war-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--smooth-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

.war-button.primary {
    background: linear-gradient(45deg, var(--crimson-red), var(--blood-crimson));
    color: var(--bone-white);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.war-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
}

.war-button.success {
    background: linear-gradient(45deg, var(--victory-green), #00cc33);
    color: var(--shadow-dark);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.3);
}

.war-button.success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 65, 0.5);
}

.war-button.danger {
    background: linear-gradient(45deg, var(--danger-red), #cc0000);
    color: var(--bone-white);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.war-button.danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
}

.war-button.secondary {
    background: var(--steel-tertiary);
    color: var(--ghost-gray);
    border: 2px solid var(--neon-pink);
}

.war-button.secondary:hover {
    background: var(--shadow-dark);
    color: var(--bone-white);
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.3);
}

.war-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Error Display */
.error-display {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6666;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

.auth-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Dashboard Interface */
.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Warrior Stats */
.warrior-stats {
    background: var(--blood-secondary);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--neon-pink);
    box-shadow: var(--war-glow);
    position: relative;
    overflow: hidden;
}

.warrior-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 102, 0.1), transparent);
    animation: sweep 3s infinite;
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.warrior-identity {
    text-align: center;
    margin-bottom: 1.5rem;
}

.warrior-title {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--crimson-red), var(--void-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.warrior-rank {
    font-size: 1.2rem;
    color: var(--fire-orange);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.battle-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--steel-tertiary);
    border-radius: 10px;
    border: 1px solid var(--neon-pink);
}

.stat-name {
    display: block;
    font-size: 0.8rem;
    color: var(--ghost-gray);
    margin-bottom: 0.5rem;
    font-family: 'Share Tech Mono', monospace;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bone-white);
}

.coward-stat {
    color: var(--danger-red);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Power Meter */
.power-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.power-bar {
    flex: 1;
    height: 15px;
    background: var(--steel-tertiary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--neon-pink);
    position: relative;
}

.power-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--crimson-red), var(--void-purple));
    border-radius: 10px;
    transition: width 0.8s ease;
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.5);
    position: relative;
}

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

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.power-text {
    font-family: 'Share Tech Mono', monospace;
    color: var(--ghost-gray);
    min-width: 100px;
    text-align: right;
}

/* War Modules */
.war-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.war-module {
    background: var(--blood-secondary);
    border: 2px solid var(--neon-pink);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--smooth-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 180px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.war-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 102, 0.05), transparent);
    opacity: 0;
    transition: var(--smooth-transition);
}

.war-module:hover::before {
    opacity: 1;
}

.war-module:hover {
    transform: translateY(-10px);
    border-color: var(--crimson-red);
    box-shadow: 0 15px 40px rgba(255, 0, 102, 0.3);
}

.module-symbol {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 0, 102, 0.5));
}

.module-name {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--bone-white);
    letter-spacing: 1px;
}

.module-purpose {
    color: var(--ghost-gray);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
}

.dashboard-controls {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.data-management {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Module Screens */
.module-screen {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.module-header {
    text-align: center;
    margin-bottom: 3rem;
}

.module-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--crimson-red), var(--void-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.module-subtitle {
    font-family: 'Share Tech Mono', monospace;
    color: var(--fire-orange);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Progress Bars */
.progress-container {
    margin-bottom: 1.5rem;
    background: var(--blood-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--neon-pink);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-title {
    font-weight: 700;
    color: var(--bone-white);
    letter-spacing: 1px;
}

.progress-value {
    font-family: 'Share Tech Mono', monospace;
    color: var(--fire-orange);
    font-weight: 700;
}

.progress-bar {
    height: 12px;
    background: var(--steel-tertiary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--shadow-dark);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--crimson-red), var(--void-purple));
    border-radius: 10px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.3);
}

/* Achievement Badges */
.achievement-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--blood-secondary);
    border: 1px solid var(--victory-green);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--smooth-transition);
    animation: achievementPop 0.5s ease-out;
}

@keyframes achievementPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.achievement-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
}

.achievement-text {
    flex: 1;
}

.achievement-title {
    font-weight: 700;
    color: var(--victory-green);
    margin-bottom: 0.25rem;
}

.achievement-desc {
    font-size: 0.9rem;
    color: var(--ghost-gray);
    font-family: 'Share Tech Mono', monospace;
}

/* Content Cards */
.content-card {
    background: var(--blood-secondary);
    border: 2px solid var(--neon-pink);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 102, 0.05), transparent);
    animation: sweep 4s infinite;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bone-white);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.card-content {
    color: var(--ghost-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Fear Challenge Card */
.fear-challenge {
    background: var(--steel-tertiary);
    border: 2px solid var(--danger-red);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fear-challenge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.challenge-text {
    font-size: 1.2rem;
    color: var(--bone-white);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.challenge-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Timer Display */
.timer-display {
    font-family: 'Share Tech Mono', monospace;
    font-size: 3rem;
    color: var(--fire-orange);
    text-align: center;
    margin: 2rem 0;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.7);
    letter-spacing: 2px;
}

/* Navigation */
.module-nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
}

.back-button {
    background: var(--blood-secondary);
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bone-white);
    cursor: pointer;
    transition: var(--smooth-transition);
    font-size: 1.5rem;
}

.back-button:hover {
    background: var(--shadow-dark);
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.3);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .war-modules {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .battle-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .data-management {
        flex-direction: column;
        align-items: center;
    }
    
    .module-screen {
        padding: 1rem;
    }
    
    .challenge-actions,
    .card-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-display {
        font-size: 2rem;
    }
}

/* Special Effects */
.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(255, 0, 102, 0.5); }
    to { box-shadow: 0 0 30px rgba(255, 0, 102, 0.8); }
}

.shake-effect {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Enhanced Module Dashboard Layout */
.module-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.module-main-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--purple);
    border-radius: 15px;
    padding: 30px;
    position: relative;
}

.module-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-card, .stats-card, .achievements-card, .activity-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--purple);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.progress-card h3, .stats-card h3, .achievements-card h3, .activity-card h3 {
    color: var(--neon-pink);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple) 0%, var(--neon-pink) 100%);
    transition: width 0.3s ease;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement-icon {
    width: 24px;
    height: 24px;
    background: var(--neon-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Enhanced Challenge Cards */
.enhanced-challenge-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(255, 20, 147, 0.1) 100%);
    border: 1px solid var(--purple);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.enhanced-challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple) 0%, var(--neon-pink) 100%);
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.challenge-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--neon-pink) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.challenge-title {
    color: var(--neon-pink);
    font-size: 1.4rem;
    font-weight: 600;
}

.challenge-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.enhanced-challenge-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Voice Recording Input */
.voice-input-container {
    position: relative;
    margin: 20px 0;
}

.voice-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--purple);
    border-radius: 10px;
    padding: 15px 50px 15px 15px;
    color: white;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.voice-input::placeholder {
    color: #888;
}

.voice-record-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    background: var(--neon-pink);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-record-btn:hover {
    background: var(--purple);
    transform: scale(1.1);
}

.voice-record-btn.recording {
    background: #ff4444;
    animation: recording-pulse 1s infinite;
}

@keyframes recording-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Level Up Animation */
.level-up-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--purple) 0%, var(--neon-pink) 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    z-index: 1000;
    animation: levelUpAppear 0.5s ease-out;
    box-shadow: 0 0 50px rgba(255, 20, 147, 0.5);
}

@keyframes levelUpAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.level-up-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.level-up-reward {
    color: #ffdd44;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Activity Log */
.activity-log {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-icon {
    width: 30px;
    height: 30px;
    background: var(--purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.log-content {
    flex: 1;
}

.log-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.log-time {
    color: #888;
    font-size: 0.8rem;
}

/* Custom Fear Addition */
.custom-fear-section {
    background: rgba(255, 20, 147, 0.1);
    border: 1px solid var(--neon-pink);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.custom-fear-section h3 {
    color: var(--neon-pink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-fear-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--purple);
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: inherit;
}

.custom-fear-input::placeholder {
    color: #888;
}

/* XP Gain Animation */
.xp-gain-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: bold;
    z-index: 1000;
    animation: xpSlideIn 0.5s ease-out, xpSlideOut 0.5s ease-out 2.5s forwards;
}

@keyframes xpSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes xpSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Module Screen Base Styles */
.module-screen {
    display: none !important;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 100%);
}

.module-screen.active {
    display: block !important;
}

.module-header {
    text-align: center;
    margin-bottom: 30px;
}

.module-header h2 {
    color: var(--neon-pink);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--neon-pink);
}

.module-header p {
    color: #ccc;
    font-size: 1.1rem;
}

/* Enhanced Button Styles for Module Dashboards */
.btn-primary, .btn-secondary, .btn-success, .btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--purple) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1493 0%, #8a2be2 100%);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.5);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1c7d6e 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
    transform: translateY(-2px);
}

/* Button glow effect */
.btn-primary::before, .btn-secondary::before, .btn-success::before, .btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before, .btn-secondary:hover::before, .btn-success:hover::before, .btn-danger:hover::before {
    left: 100%;
}

/* Enhanced Challenge Actions Layout */
.enhanced-challenge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.enhanced-challenge-actions button {
    flex: 1;
    min-width: 200px;
}

/* Enhanced Input Field Styling for Modules */
.battle-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 20, 147, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.battle-input:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.battle-input::placeholder {
    color: #888;
}

/* Enhanced Labels */
label {
    color: var(--neon-pink);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

/* Voice Input Button Enhanced */
.voice-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--purple) 100%);
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.voice-btn:hover {
    background: linear-gradient(135deg, #ff1493 0%, #8a2be2 100%);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.5);
}

.voice-btn.recording {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.05); }
}

/* Enhanced Module Dashboard Layout */
.module-dashboard {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.module-main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.module-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Enhanced Challenge Cards */
.enhanced-challenge-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--purple));
}

.enhanced-challenge-card:hover {
    border-color: rgba(255, 20, 147, 0.4);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.15);
    transform: translateY(-2px);
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.challenge-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 20, 147, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 20, 147, 0.3);
}

.challenge-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-pink);
    margin-bottom: 5px;
}

.challenge-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Sidebar Cards */
.progress-card, .stats-card, .activity-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.progress-card h3, .stats-card h3, .activity-card h3 {
    color: var(--neon-pink);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
}

.stat-item:last-child {
    margin-bottom: 0;
}

/* Progress Bar Enhanced */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-pink), var(--purple));
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

/* Activity Log */
.activity-log {
    max-height: 200px;
    overflow-y: auto;
    color: #aaa;
    font-size: 0.9rem;
}

.activity-log:empty::after {
    content: 'No recent activity yet';
    color: #666;
    font-style: italic;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .module-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .enhanced-challenge-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .enhanced-challenge-actions button {
        min-width: auto;
        width: 100%;
    }
    
    .voice-input {
        padding-right: 60px;
    }
    
    .challenge-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .module-screen {
        padding: 1rem;
    }
}

/* Achievement Notification Styles */
.achievement-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 20px;
    border-radius: 15px;
    font-weight: bold;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: achievementSlideIn 0.5s ease-out;
    min-width: 300px;
}

.achievement-notification .achievement-icon {
    font-size: 2rem;
    animation: achievementBounce 1s infinite;
}

.achievement-notification .achievement-content {
    flex: 1;
}

.achievement-notification .achievement-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.achievement-notification .achievement-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes achievementSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes achievementBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Enhanced button styles for modules */
.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sm.btn-secondary {
    background: var(--purple);
    color: white;
}

.btn-sm.btn-secondary:hover {
    background: var(--neon-pink);
    transform: scale(1.05);
}

/* Timer display enhancements */
.timer-display {
    background: rgba(0, 0, 0, 0.9) !important;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
}

/* Auto-save indicator */
.auto-save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auto-save-indicator.show {
    opacity: 1;
}

/* Step difficulty colors */
.fear-step-easy {
    border-left: 4px solid #4CAF50;
}

.fear-step-medium {
    border-left: 4px solid #FF9800;
}

.fear-step-hard {
    border-left: 4px solid #F44336;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Success/Completion States */
.completed {
    background: linear-gradient(45deg, var(--victory-green), #00cc33) !important;
    color: var(--shadow-dark) !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5) !important;
}

.failed {
    background: linear-gradient(45deg, var(--danger-red), #cc0000) !important;
    color: var(--bone-white) !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5) !important;
}

/* Hidden Elements */
.hidden {
    display: none !important;
}

.invisible {
    opacity: 0;
    pointer-events: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--shadow-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--crimson-red);
}

/* Voice Input Containers */
.voice-input-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.voice-record-btn {
    background: var(--neon-pink);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--smooth-transition);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.voice-record-btn:hover {
    background: var(--crimson-red);
    box-shadow: var(--war-glow);
    transform: scale(1.05);
}

.voice-record-btn.recording {
    background: var(--crimson-red);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* BEGIN MISSION Button Style */
.begin-mission-btn {
    width: 100%;
    padding: 12px 20px;
    margin-top: 10px;
    background: linear-gradient(45deg, var(--neon-pink), var(--crimson-red));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--smooth-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.begin-mission-btn:hover {
    box-shadow: var(--war-glow);
    transform: translateY(-2px);
    background: linear-gradient(45deg, var(--crimson-red), var(--neon-pink));
}

/* Quick Action Boosters - Amazing Style */
.quick-action-btn {
    width: 100%;
    padding: 15px 20px;
    margin: 8px 0;
    background: linear-gradient(135deg, 
        rgba(255, 0, 102, 0.1) 0%, 
        rgba(139, 0, 255, 0.1) 50%, 
        rgba(255, 0, 102, 0.1) 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--bone-white);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(255, 0, 102, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border: 2px solid var(--neon-pink);
    background: linear-gradient(135deg, 
        rgba(255, 0, 102, 0.2) 0%, 
        rgba(139, 0, 255, 0.2) 50%, 
        rgba(255, 0, 102, 0.2) 100%);
    box-shadow: 
        0 8px 25px rgba(255, 0, 102, 0.3),
        0 0 30px rgba(255, 0, 102, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    color: var(--neon-pink);
}

.quick-action-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Quick Actions Card Enhancement */
.quick-actions-card {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(26, 26, 26, 0.9) 100%);
    border: 1px solid rgba(255, 0, 102, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.quick-actions-card h3 {
    color: var(--neon-pink);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255, 0, 102, 0.3);
}

/* Power Booster Cards */
.power-booster-card {
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.power-booster-card:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--neon-pink);
    box-shadow: 
        0 12px 40px rgba(255, 0, 102, 0.2),
        0 0 30px rgba(255, 0, 102, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
