/* Máy Tính Lì Xì Thông Minh - Sắp Tết 2026 */

/* Calculator Section */
.lucky-money-calculator-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%);
    position: relative;
    overflow: hidden;
}

.lucky-money-calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23fecaca" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23fecaca" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23fecaca" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23fecaca" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23fecaca" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.lucky-money-calculator-section h2 {
    text-align: center;
    color: #dc2626;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.lucky-money-calculator-section .section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.lucky-money-calculator {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
    border: 2px solid #fecaca;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.lucky-money-calculator h3 {
    color: #dc2626;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.calculator-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Form Styles */
.calculator-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.suggested-amount {
    color: #059669;
    font-weight: 600;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

.add-recipient-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.add-recipient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.add-recipient-btn:active {
    transform: translateY(0);
}

/* Recipients Section */
.recipients-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recipients-section h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.recipients-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.empty-list {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 2rem;
}

.recipient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #dc2626;
    transition: all 0.3s ease;
}

.recipient-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.recipient-info h5 {
    color: #374151;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.recipient-info p {
    color: #6b7280;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.recipient-info .amount {
    color: #059669;
    font-weight: 600;
    font-size: 1rem;
}

.recipient-actions .remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.recipient-actions .remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Total Section */
.total-section {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.total-section h4 {
    margin: 0;
    font-size: 1.4rem;
}

#lucky-money-total {
    font-weight: 700;
    font-size: 1.6rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.export-btn,
.clear-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.export-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.clear-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(107, 114, 128, 0.3);
}

/* Tips Section */
.tips-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tips-section h4 {
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tip-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #f59e0b;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.tip-card h5 {
    color: #92400e;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.tip-card p {
    color: #78350f;
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lucky-money-calculator-section {
        padding: 2rem 0;
    }

    .lucky-money-calculator-section h2 {
        font-size: 2rem;
    }

    .lucky-money-calculator {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .calculator-form {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .export-btn,
    .clear-btn {
        width: 100%;
    }

    .recipient-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .recipient-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .lucky-money-calculator-section h2 {
        font-size: 1.8rem;
    }

    .lucky-money-calculator h3 {
        font-size: 1.5rem;
    }

    .calculator-subtitle {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .add-recipient-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lucky-money-calculator {
    animation: slideIn 0.6s ease-out;
}

.recipient-item {
    animation: slideIn 0.4s ease-out;
}

/* Scrollbar Styling */
.recipients-list::-webkit-scrollbar {
    width: 8px;
}

.recipients-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.recipients-list::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

.recipients-list::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
} 