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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 700px;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.header p {
    color: #6b7280;
    font-size: 1rem;
}

/* Form Elements */
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    height: 160px;
    padding: 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

textarea:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* Buttons */
button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-copy {
    width: auto;
    padding: 12px 24px;
    white-space: nowrap;
    background: #8b5cf6;
    color: white;
}

.btn-copy:hover {
    background: #7c3aed;
}

.btn-copy.copied {
    background: #10b981;
}

/* Alert Boxes */
.alert {
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.alert h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.alert p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 16px;
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert-success {
    background: #d1fae5;
    border: 2px solid #6ee7b7;
}

.alert-success h2 {
    color: #065f46;
}

.alert-warning {
    background: #fef3c7;
    border: 2px solid #fcd34d;
}

.alert-warning h2 {
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border: 2px solid #93c5fd;
}

.alert-info h2 {
    color: #1e40af;
}

.alert-error {
    background: #fee2e2;
    border: 2px solid #fca5a5;
}

.alert-error h2 {
    color: #991b1b;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 0.875rem;
}

/* Icon Container */
.icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Message Display */
.message-box {
    background: white;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-bottom: 16px;
}

.message-box p {
    color: #1f2937;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

.small-text {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Spacing */
.space-y {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
    .card {
        padding: 24px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn-copy {
        width: 100%;
    }
}