/* Voucher Popup Styles */
:root {
    --whapi-primary: #25D366;
    --whapi-secondary: #128C7E;
    --whapi-dark: #075E54;
    --whapi-light: #DCF8C6;
    --whapi-gold: #FFD700;
    --whapi-silver: #C0C0C0;
    --whapi-bronze: #CD7F32;
}

/* 3D Voucher Card */
.voucher-card-3d {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: none;
    box-shadow: 
        0 10px 30px rgba(37, 211, 102, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    overflow: hidden;
}

.voucher-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--whapi-primary), 
        var(--whapi-secondary), 
        var(--whapi-dark));
    border-radius: 15px 15px 0 0;
}

.voucher-card-3d:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 
        0 15px 40px rgba(37, 211, 102, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Voucher Header */
.voucher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--whapi-light);
}

.voucher-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--whapi-dark);
    margin: 0;
}

/* Discount Display */
.discount-display {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.discount-amount {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--whapi-primary), var(--whapi-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

/* Code Voucher Box */
.code-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 15px;
    border: 2px dashed var(--whapi-secondary);
    margin: 20px 0;
    position: relative;
    transition: all 0.3s ease;
}

.code-container:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: var(--whapi-primary);
}

.voucher-code {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--whapi-dark);
    text-align: center;
    margin: 0;
    padding: 10px;
    user-select: all;
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--whapi-primary), var(--whapi-secondary));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.copy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--whapi-secondary), var(--whapi-dark));
    transform: translateY(-50%) scale(1.05);
    color:#e9eeef;
}

.copy-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    color:#000000;
}

.copy-btn.copied {
    background: linear-gradient(135deg, #000000, #000000);
    color:#e9ecef;
}

/* Voucher Details */
.voucher-details {
    background: var(--whapi-light);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.detail-label {
    color: var(--whapi-dark);
    font-weight: 600;
}

.detail-value {
    color: #666;
}

/* Valid Until */
.valid-until {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
    border-radius: 8px;
    margin-top: 15px;
}

.valid-text {
    color: var(--whapi-secondary);
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

/* Floating Voucher Button */
.floating-voucher-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--whapi-primary), var(--whapi-secondary));
    color: white;
    border: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-voucher-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.floating-voucher-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Modal Customization */
.modal-voucher .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-voucher .modal-header {
    background: linear-gradient(135deg, var(--whapi-primary), var(--whapi-secondary));
    color: white;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-voucher .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-voucher .modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .voucher-code {
        font-size: 1.4rem;
        letter-spacing: 2px;
        padding-right: 80px;
    }
    
    .discount-amount {
        font-size: 2.8rem;
    }
    
    .floating-voucher-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .copy-btn {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 10px;
        width: 100%;
    }
    
    .code-container {
        text-align: center;
    }
}

/* Notification Styles */
#notificationContainer .alert {
    border-radius: 10px;
    border: none;
    animation: slideInRight 0.3s ease;
    min-width: 300px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.container-custom {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: center;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.main-row {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    gap: 30px;
}

.sidebar {
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin-left: auto;
}

.main-content {
    flex: 1;
    max-width: 795px;
    margin-right: auto;
}

.whapi-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
}

.whapi-header {
    background: linear-gradient(135deg, var(--whapi-primary), var(--whapi-secondary));
    color: white;
    padding: 1.75rem;
    text-align: center;
}

.form-container {
    padding: 2.5rem;
    background: white;
}

.nav-link {
    color: var(--whapi-dark);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin: 0.25rem 0;
    transition: all 0.2s;
}

.nav-link.active, .nav-link:hover {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--whapi-primary);
    font-weight: 600;
}

.nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    color: var(--whapi-secondary);
}

.form-check-input:checked {
    background-color: var(--whapi-primary);
    border-color: var(--whapi-primary);
}

.btn-whapi {
    background: var(--whapi-primary);
    color: white;
    font-weight: 600;
    padding: 0.875rem 2.25rem;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.2);
}

.btn-whapi:hover {
    background: var(--whapi-dark);
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(7, 94, 84, 0.2);
}

.package-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.package-card:hover {
    border-color: var(--whapi-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.package-card.selected {
    border-color: var(--whapi-primary);
    background-color: rgba(37, 211, 102, 0.05);
}

.voucher-input {
    position: relative;
}

.voucher-input .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
}

.language-selector {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    background: white;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option.active {
    background-color: rgba(37, 211, 102, 0.1);
    font-weight: 600;
}

.language-flag {
    width: 24px;
    margin-right: 12px;
    border-radius: 3px;
}

.footer {
    background: #f8f9fa;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .container-custom {
        padding: 20px 15px;
    }
    
    .main-row {
        flex-direction: column;
        align-items: center;
    }
    
    .sidebar {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 2rem;
        position: static;
        max-height: none;
    }
    
    .main-content {
        margin-right: 0;
        width: 100%;
    }
    
    .form-container {
        padding: 1.75rem;
    }
}

label.error {
    color: red; /* Mengubah warna teks menjadi merah */
    font-size: 0.9em; /* Mengatur ukuran font sedikit lebih kecil */
}