* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #0b0f19;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-shape {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.shape1 { width: 400px; height: 400px; background: rgba(99, 102, 241, 0.4); top: -100px; left: -100px; }
.shape2 { width: 500px; height: 500px; background: rgba(236, 72, 153, 0.3); bottom: -150px; right: -100px; animation-delay: -5s; }
.shape3 { width: 300px; height: 300px; background: rgba(16, 185, 129, 0.2); top: 40%; left: 40%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    max-width: 800px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}
.screen.active { display: flex; }

.glass-card, .glass-container, .modal-content {
    background: rgba(20, 25, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    width: 100%;
}

.glass-card { padding: 3rem 2rem; text-align: center; }
.glass-container { display: flex; flex-direction: column; height: 90vh; }

.icon-wrapper {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.icon-wrapper svg { color: white; width: 28px; height: 28px; }

h1, h2, h3 {
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.glass-card h1 { font-size: 2rem; margin-bottom: 5px; }
.glass-card p { color: #94a3b8; margin-bottom: 2rem; }

.input-group { position: relative; margin-bottom: 1.5rem; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #64748b; width: 20px; }

input[type="text"], input[type="password"] {
    width: 100%; padding: 16px 16px 16px 45px;
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3); color: white; font-size: 1rem;
    transition: all 0.3s ease;
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    outline: none; border-color: #6366f1;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.glow-btn {
    width: 100%; padding: 16px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white; font-size: 1.1rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    position: relative; overflow: hidden;
}
.glow-btn.outline {
    background: transparent; border: 1px solid rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
}
.glow-btn::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: all 0.5s ease;
}
.glow-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4); }
.glow-btn.outline:hover { background: rgba(99, 102, 241, 0.1); }
.glow-btn:hover::before { left: 100%; }

.icon-btn {
    background: rgba(255,255,255,0.1); border: none; color: white;
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: 0.3s;
}
.icon-btn:hover { background: rgba(99, 102, 241, 0.8); }

.error-text { color: #ef4444; margin-top: 15px; font-size: 0.9rem; opacity: 0; transition: opacity 0.3s; }

/* Dashboard specifics */
.header {
    padding: 24px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header h1 { font-size: 1.5rem; font-weight: 600; }
.subtitle { font-size: 0.85rem; color: #94a3b8; margin-top: 4px; }

.full-grid-content {
    flex: 1; padding: 24px; overflow-y: auto;
}

.projects-grid-wrapper {
    display: flex; flex-direction: column; gap: 16px;
}

.project-card {
    background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; padding: 16px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: 0.3s;
}
.project-card:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}
.project-info h3 { font-size: 1.1rem; margin-bottom: 4px; font-weight: 600; }
.project-info p { font-size: 0.8rem; color: #94a3b8; }

.project-card-right {
    display: flex; align-items: center; gap: 12px;
}
.idea-badge {
    background: rgba(236, 72, 153, 0.2); color: #ec4899;
    padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600;
}
.project-card svg { color: #6366f1; width: 20px; }

.footer-actions { padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* Details Screen */
.details-header { display: flex; justify-content: flex-start; gap: 15px; }
.details-title h1 { font-size: 1.3rem; }
.details-content { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; }
.ideas-section h2 { font-size: 1.1rem; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; color: #a5b4fc; }

.idea-card {
    background: rgba(255,255,255,0.03); border-radius: 8px; padding: 14px;
    margin-bottom: 10px; font-size: 0.95rem; line-height: 1.5; color: #e2e8f0;
    border-left: 3px solid #6366f1;
    position: relative;
}
.idea-card.completed { border-left-color: #10b981; opacity: 0.7; }
.idea-card.global { border-left-color: #ec4899; }
.idea-card .idea-meta {
    font-size: 0.75rem; color: #64748b; margin-top: 8px; display: flex; justify-content: space-between;
}
.global-tag {
    position: absolute; top: -8px; right: -8px;
    background: #ec4899; color: white; font-size: 0.65rem; padding: 2px 6px; border-radius: 8px; font-weight: 600;
}

/* Modals */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 100;
    justify-content: center; align-items: center; padding: 20px;
}
.modal.active { display: flex; }
.modal-content { max-width: 500px; padding: 24px; text-align: left; }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.close-btn, .close-project-btn { background: none; border: none; color: #94a3b8; cursor: pointer; transition: 0.3s; }
.close-btn:hover, .close-project-btn:hover { color: white; }

.textarea-wrapper {
    background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; margin-bottom: 15px; transition: all 0.3s ease; display: flex; flex-direction: column;
}
.textarea-wrapper:focus-within { border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 0 20px rgba(99, 102, 241, 0.1); }
textarea { width: 100%; background: transparent; border: none; color: white; padding: 20px; font-size: 1.15rem; line-height: 1.6; resize: none; min-height: 120px; }
.textarea-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: #64748b; font-size: 0.85rem; }

.mic-btn {
    background: rgba(236, 72, 153, 0.1); color: #ec4899; border: none;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.3s;
}
.mic-btn:hover { background: #ec4899; color: white; }
.mic-btn.recording { animation: pulseRecord 1s infinite; background: #ec4899; color: white; }

/* Toggle Switch */
.toggle-wrapper { display: flex; align-items: center; margin-bottom: 20px; }
.toggle-label { margin-left: 10px; font-size: 0.9rem; color: #e2e8f0; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: #ec4899; }
input:focus + .slider { box-shadow: 0 0 1px #ec4899; }
input:checked + .slider:before { transform: translateX(18px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

@keyframes pulseRecord {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

.loader-spinner { width: 40px; height: 40px; border: 4px solid rgba(99,102,241,0.2); border-top: 4px solid #6366f1; border-radius: 50%; animation: spin 1s linear infinite; margin: 50px auto; }
.loader { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid white; border-radius: 50%; animation: spin 1s linear infinite; }
.hidden { display: none !important; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.status-msg { margin-top: 15px; text-align: center; font-size: 0.95rem; font-weight: 500; min-height: 20px; }
.zoom-in { animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-up { animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes zoomIn { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideUp { 0% { transform: translateY(30px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
