* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px;
    max-width: 640px;
    width: 100%;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

select:hover {
    border-color: #667eea;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.generate-btn:active {
    transform: translateY(0);
}

.result-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    border: 2px dashed #e0e0e0;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.form-field {
    margin-bottom: 18px;
}

.form-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
    font-weight: 500;
}

.form-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input {
    font-size: 16px;
    color: #333;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    height: 40px;
    flex: 1;
}

.field-copy-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.field-copy-btn:hover {
    background: #bbdefb;
    transform: scale(1.05);
}

.field-copy-btn:active {
    transform: scale(0.95);
}

.field-copy-btn svg {
    width: 16px;
    height: 16px;
}

.field-copy-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.field-copy-btn:active {
    transform: scale(0.95);
}

.field-copy-btn.copied {
    background: #28a745;
}

.copy-btn {
    background: #28a745;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #218838;
}

.hidden {
    display: none;
}

.stats {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.copied-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1976d2;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.copied-notification.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.close-notification {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-notification:hover {
    opacity: 1;
}

/* ------------------ Responsive tweaks ------------------ */

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 24px 18px;
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    }

    h1 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .generate-btn {
        font-size: 15px;
        padding: 12px 20px;
    }

    .form-input {
        font-size: 15px;
        padding: 8px 10px;
        height: 38px;
    }

    .field-copy-btn {
        min-width: 32px;
        height: 32px;
        padding: 6px;
    }

    .result-card {
        padding: 18px;
        margin-top: 18px;
    }

    .copied-notification {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 14px;
    }

    h1 {
        font-size: 20px;
    }

    .form-field {
        margin-bottom: 14px;
    }

    .stats {
        font-size: 11px;
    }
}
