:root {
    --bg-color: #0d0d12;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --surface: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --glow: #6366f1;
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 680px;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Glass Panel */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Form Styling */
.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.input-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    gap: 1.5rem;
}

.row .input-group {
    flex: 1;
}

label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
}

input[type="text"],
input[type="url"],
input[type="date"],
textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

/* Custom Input Styles */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

.currency-input-wrapper {
    position: relative;
}

.currency-unit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Radio Cards */
.radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.radio-card {
    flex: 1;
    min-width: 80px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-card-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 0.5rem;
    /* slightly less padding */
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

.radio-card input:checked~.radio-card-content {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: #fff;
}

.radio-card:hover .radio-card-content {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Action Area */
.action-area {
    margin-top: 2rem;
}

.generate-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.generate-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

/* Result Area */
.result-area {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
    opacity: 1;
    transition: all 0.5s ease;
}

.result-area.hidden {
    display: none;
    opacity: 0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.copy-feedback {
    font-size: 0.9rem;
    color: #4ade80;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}

.textarea-wrapper {
    position: relative;
}

#resultText {
    width: 100%;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 600px) {
    .glass-panel {
        padding: 1.5rem;
    }

    .row {
        flex-direction: column;
        gap: 1.25rem;
    }

    .header h1 {
        font-size: 2rem;
    }
}