/* Main Container */
.abw-container {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    color: #333;
    background-color: #fef6f7;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 105, 140, 0.1);
}

/* Form Container */
.abw-form-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 105, 140, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #ffecef;
}

/* Title */
.abw-title {
    text-align: center;
    color: #ff6b88;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.abw-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 100%);
    border-radius: 2px;
}

/* Form Elements */
.abw-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
}

.abw-form-group {
    flex: 1 1 calc(50% - 25px);
    min-width: 250px;
    margin-bottom: 0;
    box-sizing: border-box;
    position: relative; /* Added for dropdown positioning */
}

.abw-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
    font-size: 15px;
}

.abw-form input[type="text"],
.abw-form input[type="number"],
.abw-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #fafafa;
    box-sizing: border-box; /* Added to fix sizing issues */
}

.abw-form input[type="text"]:hover,
.abw-form input[type="number"]:hover,
.abw-form select:hover {
    border-color: #ffb8c6;
}

.abw-form input[type="text"]:focus,
.abw-form input[type="number"]:focus,
.abw-form select:focus {
    border-color: #ff6b88;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 136, 0.2);
    background-color: #fff;
}

/* Fix for select dropdown positioning */
.abw-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23555%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 35px; /* Add space for dropdown arrow */
}

.abw-required {
    color: #ff4757;
}

/* Submit Button */
.abw-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
}

.abw-generate-btn {
    background: linear-gradient(135deg, #ff6b88 0%, #ff8e53 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 136, 0.3);
    width: 100%;
    max-width: 400px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.abw-generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 107, 136, 0.4);
    background: linear-gradient(135deg, #ff5c7c 0%, #ff7e40 100%);
}

.abw-generate-btn:active {
    transform: translateY(1px);
}

/* Switch/Toggle for Emoji */
.abw-emoji-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.abw-emoji-toggle label {
    margin-bottom: 0;
    cursor: pointer;
}

.abw-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.abw-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.abw-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .4s;
    border-radius: 34px;
}

.abw-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .abw-slider {
    background: linear-gradient(135deg, #ff6b88 0%, #ff8e53 100%);
}

input:focus + .abw-slider {
    box-shadow: 0 0 1px #ff6b88;
}

input:checked + .abw-slider:before {
    transform: translateX(24px);
}

/* Results Container */
.abw-results {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 105, 140, 0.1);
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #ffecef;
}

.abw-loader {
    text-align: center;
    padding: 40px 0;
}

.abw-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 136, 0.2);
    border-radius: 50%;
    border-top-color: #ff6b88;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

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

/* Wishes Container */
.abw-wishes-container {
    padding: 15px 0;
}

.abw-wish-item {
    background-color: #fff9fa;
    border-left: 4px solid #ff6b88;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 136, 0.05);
}

.abw-wish-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 136, 0.1);
}

.abw-wish-item-number {
    position: absolute;
    top: -12px;
    left: -12px;
    background: linear-gradient(135deg, #ff6b88 0%, #ff8e53 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 2px 5px rgba(255, 107, 136, 0.3);
}

.abw-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.abw-copy-btn, .abw-regenerate-btn {
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
    flex: 1;
    text-align: center;
}

.abw-copy-btn {
    background-color: #f8f8f8;
    color: #555;
    border: 1px solid #e0e0e0;
}

.abw-copy-btn:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
}

.abw-regenerate-btn {
    background: linear-gradient(135deg, #ff6b88 0%, #ff8e53 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(255, 107, 136, 0.2);
}

.abw-regenerate-btn:hover {
    background: linear-gradient(135deg, #ff5c7c 0%, #ff7e40 100%);
    box-shadow: 0 3px 15px rgba(255, 107, 136, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .abw-container {
        padding: 20px;
        max-width: 95%;
        box-sizing: border-box; /* Added for container sizing */
    }
    
    .abw-form-container, .abw-results {
        padding: 25px;
        box-sizing: border-box; /* Added for consistent sizing */
    }
    
    .abw-form-group {
        flex: 1 1 100%;
    }
    
    .abw-title {
        font-size: 28px;
    }
    
    .abw-generate-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .abw-container {
        padding: 10px;
    }
    
    .abw-form-container, .abw-results {
        padding: 20px;
    }
    
    .abw-title {
        font-size: 24px;
    }
    
    .abw-actions {
        flex-direction: column;
    }
}

/* Success and Error Messages */
.abw-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.abw-success {
    background-color: #e8f8ef;
    color: #1e824c;
    border: 1px solid #d0f0de;
}

.abw-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Copy Success Animation */
.abw-copied {
    position: relative;
}

.abw-copied:after {
    content: "✓ Copied!";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff6b88;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    opacity: 0;
    animation: fadeInOut 1.5s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 136, 0.3);
}

@keyframes fadeInOut {
    0% { opacity: 0; bottom: 80%; }
    20% { opacity: 1; bottom: calc(100% + 10px); }
    80% { opacity: 1; bottom: calc(100% + 10px); }
    100% { opacity: 0; bottom: calc(100% + 20px); }
}

/* Floating Hearts Background */
.abw-hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.abw-heart {
    position: absolute;
    opacity: 0.1;
    color: #ff6b88;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}