:root {
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --bg-gradient: linear-gradient(135deg, #f4f6fa 0%, #e2e8f0 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --warning-bg: rgba(254, 240, 138, 0.5);
    --warning-border: #fde047;
    --info-bg: rgba(186, 230, 253, 0.5);
    --info-border: #7dd3fc;
    --error-bg: rgba(254, 202, 202, 0.5);
    --error-border: #fca5a5;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Background animated blobs */
.background-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: rgba(6, 182, 212, 0.3);
}

.blob-2 {
    bottom: -10%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(139, 92, 246, 0.2);
    animation-delay: -5s;
}

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

/* App Container */
.app-container {
    width: 100%;
    max-w: 600px;
    padding: 2rem;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    animation: fade-in-up 0.8s ease-out;
    margin: 1rem;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.lang-toggle {
    position: absolute;
    top: 0; right: 0;
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.lang-toggle button {
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.lang-toggle button.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: monospace;
    letter-spacing: 0.05em;
}

/* Notices */
.notices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.notice-card.warning { background: var(--warning-bg); border-color: var(--warning-border); }
.notice-card.info { background: var(--info-bg); border-color: var(--info-border); }
.notice-card.error { background: var(--error-bg); border-color: var(--error-border); }

.notice-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.notice-card a:hover { text-decoration: underline; }

/* Form */
.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.label-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-link {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.help-link:hover {
    text-decoration: underline;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: rgba(255, 255, 255, 0.8);
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--text-main);
    transition: all 0.2s;
    outline: none;
    resize: vertical;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.39);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
    background: linear-gradient(to right, #0891b2, #2563eb);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Result Message */
.result-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    animation: fade-in-up 0.3s ease-out;
}

.result-message.success {
    background: rgba(187, 247, 208, 0.5);
    border: 1px solid #86efac;
    color: #166534;
}

.result-message.error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: #991b1b;
}
