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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 520px;
    width: 100%;
}

h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 15px;
}

label {
    display: block;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
    font-size: 14px;
}

textarea, input[type="text"], input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #4a90d9;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.options {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.option {
    flex: 1;
}

select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #4a90d9;
}

button {
    width: 100%;
    padding: 14px;
    background: #4a90d9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #3a7bc8;
}

button:disabled {
    background: #a0c4e8;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

#result {
    margin-top: 30px;
    text-align: center;
}

.link-box {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.link-box input {
    flex: 1;
}

.link-box button {
    width: auto;
    padding: 14px 20px;
}

.warning {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 12px;
}

#error {
    background: #fde8e8;
    color: #c53030;
    padding: 14px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
}

.secret-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px;
}

.secret-box textarea {
    border: none;
    background: transparent;
    resize: none;
}

.label {
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

#loading {
    text-align: center;
    color: #666;
    padding: 40px;
}

#passwordPrompt {
    text-align: center;
}

#passwordPrompt p {
    margin-bottom: 20px;
    color: #666;
}

#passwordPrompt form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#passwordPrompt button {
    margin-top: 10px;
}

#secretDisplay {
    text-align: center;
}

#secretDisplay .warning {
    margin-top: 20px;
}

.error-text {
    color: #c53030;
    font-size: 15px;
}

#notFound {
    text-align: center;
    padding: 40px 0;
}

#notFound a {
    color: #4a90d9;
    margin-top: 20px;
    display: inline-block;
}

@media (max-width: 480px) {
    .container {
        padding: 24px;
    }
    
    .options {
        flex-direction: column;
        gap: 16px;
    }
    
    .link-box {
        flex-direction: column;
    }
}
