/* Curren Command Center - Pro Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Auth Screen */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 2rem;
    padding: 2rem;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,255,136,0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.auth-container h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #00ff88, #0088ff, #ff0080);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
    text-shadow: 0 0 30px rgba(0,255,136,0.3);
    z-index: 1;
    position: relative;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

section {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    transition: left 0.5s ease;
}

section:hover::before {
    left: 100%;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,255,136,0.1);
}

section h2 {
    color: #00ff88;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Voice Section */
.voice-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.talk-btn {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0,255,136,0.3);
    position: relative;
    overflow: hidden;
}

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

.talk-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0,255,136,0.4);
}

.talk-btn:hover::before {
    width: 100%;
    height: 100%;
}

.talk-btn:active, .talk-btn.recording {
    background: linear-gradient(45deg, #ff4444, #ff8800);
    animation: recordPulse 1.5s infinite;
    box-shadow: 0 0 30px rgba(255,68,68,0.6);
}

@keyframes recordPulse {
    0%, 100% { transform: scale(1.1); box-shadow: 0 0 30px rgba(255,68,68,0.6); }
    50% { transform: scale(1.2); box-shadow: 0 0 40px rgba(255,68,68,0.8); }
}

.mic-icon {
    font-size: 2rem;
}

.voice-status {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.conversation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1.5rem;
    border-radius: 20px;
    max-width: 80%;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    animation: messageSlide 0.3s ease-out;
}

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

.message.user {
    background: linear-gradient(135deg, rgba(0,136,255,0.8), rgba(0,136,255,0.6));
    align-self: flex-end;
    margin-left: auto;
}

.message.ai {
    background: rgba(51, 51, 51, 0.8);
    align-self: flex-start;
}

/* Visa Section */
.visa-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.visa-form textarea {
    grid-column: 1 / -1;
    min-height: 80px;
    resize: vertical;
}

.visa-list {
    display: grid;
    gap: 1rem;
}

.visa-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border-left: 4px solid #00ff88;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.visa-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0,255,136,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.visa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,255,136,0.15);
    border-left-color: #0088ff;
}

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

.visa-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.visa-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.visa-status.planning { background: #444; }
.visa-status.applied { background: #0088ff; }
.visa-status.approved { background: #00ff88; color: #000; }
.visa-status.rejected { background: #ff4444; }
.visa-status.expired { background: #888; }

.visa-checklist {
    margin-top: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checklist-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

/* Form Elements */
input, select, textarea, button {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0,255,136,0.2);
    transform: translateY(-2px);
}

button {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,255,136,0.3);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

button:hover {
    background: linear-gradient(45deg, #00cc6a, #00ff88);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,255,136,0.4);
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:active {
    transform: translateY(-1px);
}

#logout-btn {
    background: linear-gradient(45deg, #ff4444, #cc3333);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    header {
        padding: 1rem;
    }
    
    .visa-form {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .talk-btn {
        width: 120px;
        height: 120px;
    }
    
    .auth-container h1 {
        font-size: 2.5rem;
    }
    
    .voice-controls {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .visa-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .message {
        max-width: 95%;
        padding: 1.5rem;
        font-size: 0.9rem;
    }
    
    .talk-btn {
        width: 100px;
        height: 100px;
    }
    
    .auth-container h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    input, select, textarea, button {
        padding: 1.2rem;
        font-size: 16px;
    }
}

html {
    scroll-behavior: smooth;
}

.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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