/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Hidden Cyber Color Pattern - Sesuai Logo */
    --primary-color: #2C5F7E;        /* Biru gelap dari logo */
    --primary-dark: #1A3B52;         /* Biru lebih gelap */
    --primary-light: #4A8AAD;        /* Biru muda dari logo */
    --accent-color: #FF6B6B;         /* Merah/Orange dari padlock */
    --accent-dark: #E74C3C;          /* Merah lebih gelap */
    --secondary-color: #5DADE2;      /* Biru cyan dari logo */
    --error-color: #E74C3C;
    --text-primary: #1A3B52;
    --text-secondary: #5A7A8F;
    --bg-light: #F0F4F7;
    --bg-white: #ffffff;
    --border-color: #D5E3EB;
    --shadow-sm: 0 1px 2px 0 rgba(26, 59, 82, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(26, 59, 82, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(26, 59, 82, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #2C5F7E 0%, #1A3B52 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 120px;
    height: auto;
    display: inline-block;
    background: white;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Main Content */
.main-content {
    padding: 30px;
}

/* Donation Form */
.donation-form-container {
    animation: fadeIn 0.3s ease-in;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency {
    position: absolute;
    left: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1rem;
}

input[type="number"] {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 126, 0.15);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.help-text {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Quick Amount Buttons */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.quick-btn {
    padding: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    border-color: var(--primary-color);
    background: rgba(44, 95, 126, 0.08);
    color: var(--primary-color);
}

.quick-btn:active {
    transform: scale(0.98);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* QR Container */
.qr-container {
    animation: fadeIn 0.3s ease-in;
}

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

.qr-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.qr-amount {
    color: var(--text-secondary);
    font-size: 1rem;
}

.qr-amount strong {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 700;
}

/* QR Code Wrapper */
.qr-code-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

#qrcode {
    display: inline-block;
}

#qrcode img {
    display: block;
    border-radius: var(--radius-sm);
}

/* Instructions */
.qr-instructions {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.qr-instructions h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.qr-instructions ol {
    margin-left: 20px;
}

.qr-instructions li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Back Button */
.back-btn {
    width: 100%;
    padding: 14px;
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Error Message */
.error-message {
    background: #FFE8E8;
    border: 2px solid var(--accent-color);
    color: #C62828;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.3s ease-in-out;
}

.error-icon {
    font-size: 1.5rem;
}

.error-text {
    flex: 1;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .logo {
        width: 100px;
        padding: 12px;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .main-content {
        padding: 20px;
    }

    .quick-amounts {
        grid-template-columns: 1fr;
    }
}

