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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

/* Auth Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.auth-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(20px);
}

.auth-modal h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.auth-modal input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-modal input:focus {
    outline: none;
    border-color: #6c63ff;
}

.auth-modal input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-error {
    background: rgba(248, 113, 113, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.btn-link {
    width: 100%;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 10px;
    margin-top: 15px;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #6c63ff;
}

/* Header with user info */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn-logout {
    background: rgba(248, 113, 113, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(248, 113, 113, 0.3);
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

.panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.left-panel {
    max-width: 450px;
    position: sticky;
    top: 20px;
}

.right-panel {
    min-height: 500px;
}

h1 {
    font-size: 2rem;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.image-upload {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.image-upload:hover {
    border-color: #6c63ff;
    background: rgba(108, 99, 255, 0.1);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.upload-icon {
    font-size: 3rem;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    resize: none;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #6c63ff;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6c63ff 0%, #5a52d5 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Right Panel */
.empty-state, .processing-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.empty-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

/* Processing Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 300px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
    background: rgba(108, 99, 255, 0.2);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.step.completed {
    opacity: 1;
}

.step.completed .step-loader {
    display: none;
}

.step.completed::after {
    content: '✓';
    margin-left: auto;
    color: #4ade80;
    font-weight: bold;
}

.step-icon {
    font-size: 1.5rem;
}

.step-text {
    flex: 1;
}

.step-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #6c63ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.step.active .step-loader {
    display: block;
}

/* Event Card */
.result-state {
    height: 100%;
    overflow-y: auto;
}

.event-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.event-emoji {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 16px;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.event-status {
    display: inline-block;
    padding: 4px 12px;
    background: #4ade80;
    color: #000;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
}

.meta-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.meta-value {
    font-weight: 500;
}

.event-description {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.event-tip {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(108, 99, 255, 0.1) 100%);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 3px solid #6c63ff;
}

.tip-label {
    font-size: 0.8rem;
    color: #6c63ff;
    font-weight: 600;
    margin-bottom: 5px;
}

.event-checklist {
    margin-top: 20px;
}

.checklist-title {
    font-weight: 600;
    margin-bottom: 10px;
}

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

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

.checklist-icon {
    color: #4ade80;
}

/* Error State */
.error-state {
    color: #f87171;
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel {
        max-width: none;
        position: relative;
        top: 0;
    }
    
    .right-panel {
        min-height: 400px;
    }
    
    .auth-modal {
        margin: 20px;
    }
}
