@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;600;700&display=swap');

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

.zakat-calculator-container {
    font-family: 'Noto Serif Bengali', serif;
    background: #0a0a0a;
    color: #fff;
    direction: ltr;
    text-align: left;
    min-height: 100vh;
}

/* Header Section */
.zakat-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.zakat-lang-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 30px;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zakat-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.zakat-header h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Content Container */
.zakat-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Instructions Box */
.zakat-instructions {
    background: #1a1a1a;
    border-left: 6px solid #10b981;
    padding: 35px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.zakat-instructions p {
    color: #e5e5e5;
    line-height: 1.8;
}

.zakat-instructions strong {
    font-size: 1.2em;
    color: #10b981;
    display: block;
    margin-bottom: 15px;
}

.zakat-instructions ul {
    list-style-type: none;
    padding-left: 0;
}

.zakat-instructions li {
    padding: 10px 0 10px 35px;
    position: relative;
    line-height: 1.8;
    font-size: 1.05em;
    color: #e5e5e5;
}

.zakat-instructions li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.3em;
}

/* Section Styling */
.zakat-section {
    background: #1a1a1a;
    padding: 50px;
    margin: 50px 0;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.15);
    transition: all 0.3s ease;
}

.zakat-section:hover {
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.25);
    border-color: #10b981;
}

.zakat-section h2 {
    color: #10b981;
    font-size: 2.2em;
    margin: 0 0 40px 0;
    padding-bottom: 20px;
    border-bottom: 4px solid #10b981;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zakat-section h3 {
    color: #10b981;
    font-size: 1.6em;
    margin: 35px 0 25px 0;
    font-weight: 600;
    padding-left: 15px;
    border-left: 4px solid #10b981;
}

/* Table Styling */
.zakat-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: #0f0f0f;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.zakat-table thead {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.zakat-table th {
    padding: 20px 18px;
    text-align: left;
    color: #fff;
    font-weight: 700;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zakat-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #2a2a2a;
}

.zakat-table tbody tr:last-child {
    border-bottom: none;
}

.zakat-table tbody tr:hover {
    background: #1f1f1f;
}

.zakat-table td {
    padding: 18px;
    text-align: left;
    font-size: 1.05em;
    color: #e5e5e5;
}

.zakat-table td:first-child {
    color: #10b981;
    font-weight: 700;
    font-size: 1.1em;
}

.zakat-table input {
    width: 100%;
    max-width: 280px;
    padding: 14px 18px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    color: #fff;
    font-family: 'Noto Serif Bengali', serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.zakat-table input:hover {
    border-color: #10b981;
}

.zakat-table input:focus {
    outline: none;
    border-color: #10b981;
    background: #1f1f1f;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Total Display */
.zakat-total {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.4);
}

.zakat-total .label {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zakat-total strong {
    font-size: 2.5em;
    display: block;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Payment Section */
.zakat-payment-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 60px;
    border-radius: 20px;
    margin: 60px 0;
    border: 3px solid #10b981;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
}

.zakat-payment-section h2 {
    color: #10b981;
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zakat-form-group {
    margin-bottom: 30px;
}

.zakat-form-group label {
    display: block;
    margin-bottom: 12px;
    color: #10b981;
    font-weight: 700;
    font-size: 1.15em;
    letter-spacing: 0.5px;
}

.zakat-form-group input {
    width: 100%;
    padding: 18px 22px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    color: #fff;
    font-family: 'Noto Serif Bengali', serif;
    font-size: 17px;
    transition: all 0.3s ease;
}

.zakat-form-group input:hover {
    border-color: #10b981;
}

.zakat-form-group input:focus {
    outline: none;
    border-color: #10b981;
    background: #1f1f1f;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.zakat-form-group input[readonly] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    border-color: #10b981;
    cursor: not-allowed;
    font-weight: 700;
    font-size: 1.3em;
    text-align: center;
}

/* Pay Button */
.zakat-pay-button {
    width: 100%;
    padding: 25px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 15px;
    color: #fff;
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.5em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 30px;
}

.zakat-pay-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.zakat-pay-button:active {
    transform: translateY(-2px);
}

.zakat-pay-button:disabled {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

/* Note Box */
.zakat-note {
    background: linear-gradient(135deg, #3a2010 0%, #2a1808 100%);
    border-left: 6px solid #fbbf24;
    padding: 25px 30px;
    margin: 35px 0;
    border-radius: 12px;
    line-height: 1.9;
    color: #fff;
}

.zakat-note p {
    margin: 0;
    color: #e5e5e5;
}

.zakat-note strong {
    color: #fbbf24;
    font-size: 1.15em;
    display: block;
    margin-bottom: 10px;
}

/* Language Toggle */
.english-text {
    display: none;
}

.bangla-text {
    display: block;
}

.lang-en .english-text {
    display: block;
}

.lang-en .bangla-text {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .zakat-content {
        padding: 30px 15px;
    }
    
    .zakat-section {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .zakat-header {
        padding: 60px 15px;
    }
    
    .zakat-header h1 {
        font-size: 2.2em;
    }
    
    .zakat-lang-toggle {
        position: static;
        margin: 0 auto 20px;
        display: block;
        width: fit-content;
    }
    
    .zakat-section {
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .zakat-section h2 {
        font-size: 1.6em;
    }
    
    .zakat-section h3 {
        font-size: 1.3em;
    }
    
    .zakat-table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
    }
    
    .zakat-table th,
    .zakat-table td {
        padding: 12px 10px;
    }
    
    .zakat-table input {
        max-width: 150px;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .zakat-payment-section {
        padding: 35px 20px;
    }
    
    .zakat-payment-section h2 {
        font-size: 1.8em;
    }
    
    .zakat-pay-button {
        font-size: 1.2em;
        padding: 18px;
    }
    
    .zakat-instructions {
        padding: 25px 20px;
    }
    
    .zakat-total strong {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .zakat-header h1 {
        font-size: 1.8em;
    }
    
    .zakat-section {
        padding: 20px 15px;
    }
    
    .zakat-table input {
        max-width: 120px;
    }
}

/* Loading Animation */
.zakat-pay-button.loading {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    pointer-events: none;
}

.zakat-pay-button.loading::after {
    content: "...";
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Smooth Transitions */
* {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
