* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.galaxy-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 700px;
}

h1 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.dropdown-container {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    width: 100%;
}

.task-dropdown {
    padding: 8px 14px;
    font-size: 0.8rem;
    background: rgba(102, 126, 234, 0.08);
    border: 1.5px solid rgba(102, 126, 234, 0.3);
    color: #b8b8b8;
    border-radius: 10px;
    backdrop-filter: blur(20px);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    font-weight: 400;
}

.task-dropdown:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
    color: #d0d0d0;
}

.task-dropdown:focus {
    border-color: rgba(102, 126, 234, 0.7);
    background: rgba(102, 126, 234, 0.15);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    color: #d0d0d0;
}

.task-dropdown option {
    background: #1a1a2e;
    color: #c0c0c0;
    font-weight: 400;
}

.logo-container {
    position: fixed;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.logo-cube {
    width: 36px;
    height: 36px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo-cube:hover {
    opacity: 1;
}

.logo-text {
    font-family: 'Gabriola', cursive;
    font-size: 1.65rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.login-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 10px 28px;
    font-size: 0.88rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1.5px solid rgba(102, 126, 234, 0.4);
    color: #d0d0d0;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.3px;
    z-index: 10;
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: #e8e8e8;
}

.login-btn:active {
    transform: translateY(0);
}

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-modal.active {
    display: flex;
    opacity: 1;
}

.login-box {
    background: rgba(15, 15, 25, 0.95);
    border: 1.5px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.login-modal.active .login-box {
    transform: scale(1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: block;
    filter: invert(1) drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.login-title {
    font-size: 1.5rem;
    color: #e8e8e8;
    font-weight: 400;
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.form-input {
    padding: 12px 16px;
    font-size: 0.9rem;
    background: rgba(102, 126, 234, 0.08);
    border: 1.5px solid rgba(102, 126, 234, 0.3);
    color: #d0d0d0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.12);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-submit {
    padding: 12px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-submit:active {
    transform: translateY(0);
}

.login-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.prompt-container {
    position: relative;
    width: 100%;
}

.attach-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.attach-btn svg {
    width: 16px;
    height: 16px;
}

.prompt-input:focus ~ .attach-btn,
.prompt-container:has(.prompt-input:focus) .attach-btn {
    top: 18px;
    transform: translateY(0);
}

.attach-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.prompt-input {
    width: 100%;
    padding: 20px 70px 20px 60px;
    font-size: 0.95rem;
    background: rgba(15, 15, 25, 0.6);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    resize: none;
    overflow-y: auto;
    min-height: 60px;
    max-height: 200px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

.prompt-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.prompt-input:focus {
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(102, 126, 234, 0.15);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    min-height: 120px;
    outline: none;
}

.send-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 2;
}

.send-btn svg {
    width: 16px;
    height: 16px;
}

.prompt-input:focus ~ .send-btn,
.prompt-container:has(.prompt-input:focus) .send-btn {
    top: 18px;
    transform: translateY(0);
}

.send-btn:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.prompt-input:focus ~ .send-btn:hover,
.prompt-container:has(.prompt-input:focus) .send-btn:hover {
    transform: translateY(0) scale(1.08);
}

.send-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prompt-input:focus ~ .send-btn:active,
.prompt-container:has(.prompt-input:focus) .send-btn:active {
    transform: translateY(0) scale(0.95);
}

.word-counter {
    position: absolute;
    left: 12px;
    bottom: 10px;
    display: none;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.prompt-input:focus ~ .word-counter,
.prompt-container:has(.prompt-input:focus) .word-counter {
    display: flex;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.15s ease-out;
}

.progress-ring-bar {
    stroke-dasharray: 50.27;
    stroke-dashoffset: 50.27;
    transition: stroke-dashoffset 0.15s ease-out;
}

.word-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    white-space: nowrap;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-container {
        top: 20px;
        left: 20px;
    }
    
    .logo-cube {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .login-btn {
        top: 20px;
        right: 20px;
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .content {
        width: 95%;
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .dropdown-container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .task-dropdown {
        width: 100%;
        min-width: auto;
    }
    
    .prompt-input {
        font-size: 0.9rem;
        padding: 18px 60px 18px 50px;
        min-height: 55px;
    }
    
    .prompt-input:focus {
        min-height: 100px;
    }
    
    .attach-btn {
        width: 32px;
        height: 32px;
    }
    
    .attach-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .send-btn {
        width: 36px;
        height: 36px;
    }
    
    .send-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .word-counter {
        left: 10px;
        bottom: 8px;
    }
    
    .progress-ring {
        width: 18px;
        height: 18px;
    }
    
    .word-count {
        font-size: 0.65rem;
    }
    
    .login-modal {
        padding: 20px;
    }
    
    .login-box {
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .login-title {
        font-size: 1.3rem;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }
    
    p {
        font-size: 0.85rem;
    }
    
    .task-dropdown {
        font-size: 0.75rem;
        padding: 7px 12px;
    }
    
    .prompt-input {
        font-size: 0.85rem;
        padding: 16px 55px 16px 45px;
    }
}
