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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.logo {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: 1px;
}

.subtitle {
    color: #666666;
    margin-bottom: 40px;
    font-size: 0.9em;
    font-weight: 300;
}

.mode-selector {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

.mode-option {
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.9em;
    font-weight: 300;
    padding: 8px 0;
}

.mode-option.active {
    color: #aaaaaa;
}

.mode-option:hover {
    color: #aaaaaa;
}

.content-area {
    margin-bottom: 30px;
    min-height: 280px;
}

.text-container {
    display: block;
}

.file-container {
    display: none;
}

.text-area {
    width: 100%;
    min-height: 200px;
    max-height: 200px;
    background: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    resize: none;
    transition: all 0.2s ease;
}

.text-area:focus {
    outline: none;
    border-color: #555555;
    background: #111111;
}

.text-area::placeholder {
    color: #555555;
    font-family: 'Inter', sans-serif;
}

.char-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 0.8em;
    color: #666666;
}

.char-counter.warning {
    color: #ffaa00;
}

.char-counter.danger {
    color: #ff6666;
}

.upload-area {
    border: 2px dashed #333333;
    border-radius: 8px;
    padding: 60px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #0a0a0a;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    border-color: #555555;
    background: #111111;
}

.upload-area.drag-over {
    border-color: #777777;
    background: #1a1a1a;
}

.upload-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #444444;
    font-weight: 300;
}

.upload-text {
    font-size: 1em;
    color: #888888;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 0.85em;
    color: #555555;
    font-weight: 300;
}

.file-input {
    display: none;
}

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

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaaaaa;
    font-size: 0.9em;
    font-weight: 400;
}

.password-input {
    width: 100%;
    height: 48px;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 6px;
    padding: 0 16px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.password-input:focus {
    outline: none;
    border-color: #333333;
    background: #0a0a0a;
}

.password-input::placeholder {
    color: #555555;
}

.password-hint {
    font-size: 0.8em;
    color: #666666;
    margin-top: 6px;
    font-weight: 300;
}

.timing-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.timing-option {
    flex: 1;
    min-width: 80px;
    height: 40px;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 6px;
    color: #aaaaaa;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timing-option:hover {
    border-color: #333333;
    background: #0a0a0a;
}

.timing-option.active {
    border-color: #555555;
    background: #1a1a1a;
    color: #ffffff;
}

.submit-btn {
    width: 100%;
    height: 48px;
    background: transparent;
    border: 1px solid #333333;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 6px;
}

.submit-btn:hover {
    background: #111111;
    border-color: #444444;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-container {
    margin-top: 30px;
    display: none;
}

.result-title {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.1em;
    font-weight: 400;
}

.result-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 6px;
    padding: 16px;
}

.result-value {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    word-break: break-all;
    flex-grow: 1;
    font-size: 0.9em;
    line-height: 1.4;
}

.copy-btn {
    background: transparent;
    border: 1px solid #333333;
    color: #aaaaaa;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.2s ease;
    border-radius: 4px;
    font-weight: 400;
}

.copy-btn:hover {
    color: #ffffff;
    border-color: #444444;
    background: #0a0a0a;
}

.progress-container {
    margin-bottom: 20px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #222222;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    transition: width 0.3s ease;
    width: 0%;
    border-radius: 2px;
}

.progress-text {
    font-size: 0.8em;
    color: #888888;
    text-align: center;
}

.error-message {
    background: #0f0000;
    border: 1px solid #330000;
    border-radius: 6px;
    padding: 12px;
    margin-top: 20px;
    font-size: 0.9em;
    color: #ff6666;
    font-weight: 300;
    display: none;
}

.footer {
    position: fixed;
    bottom: 20px;
    color: #333333;
    font-size: 0.8em;
    font-weight: 300;
}

.loading {
    display: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #333333;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.back-btn {
    width: 100%;
    height: 42px;
    background: transparent;
    border: 1px solid #222222;
    color: #666666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
    border-radius: 6px;
    font-weight: 400;
}

.back-btn:hover {
    color: #aaaaaa;
    border-color: #333333;
}

.expire-notice {
    background: #0f0a00;
    border: 1px solid #332200;
    border-radius: 6px;
    padding: 12px;
    margin-top: 20px;
    font-size: 0.9em;
    color: #cc9900;
    font-weight: 300;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 2em;
    }
    
    .content-area {
        min-height: 240px;
    }
    
    .text-area {
        min-height: 150px;
        max-height: 150px;
        font-size: 13px;
    }
    
    .upload-area {
        padding: 40px 15px;
        height: 150px;
    }
    
    .upload-icon {
        font-size: 2em;
    }
    
    .mode-option {
        font-size: 0.8em;
    }
    
    .timing-group {
        gap: 8px;
    }
    
    .timing-option {
        min-width: 70px;
        height: 36px;
        font-size: 0.8em;
    }
}

@media (min-width: 769px) {
    .container {
        max-width: 700px;
    }
    
    .logo {
        font-size: 3em;
        margin-bottom: 12px;
    }
    
    .subtitle {
        font-size: 1em;
        margin-bottom: 50px;
    }
    
    .content-area {
        min-height: 300px;
    }
    
    .text-area {
        min-height: 220px;
        max-height: 220px;
        font-size: 15px;
    }
    
    .upload-area {
        height: 220px;
        padding: 70px 30px;
    }
    
    .upload-icon {
        font-size: 3em;
    }
    
    .password-input {
        height: 52px;
        font-size: 15px;
    }
    
    .submit-btn {
        height: 52px;
        font-size: 16px;
    }
    
    .timing-option {
        height: 44px;
        font-size: 0.95em;
    }
}
