* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1B8F6A, #2ECC71);
    color: white;
    padding: 30px;
    text-align: center;
}

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

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.qr-scanner-section {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.scanner-container {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.doc-id-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.doc-id-input:focus {
    outline: none;
    border-color: #1B8F6A;
}

.fetch-btn {
    padding: 15px 30px;
    background: #1B8F6A;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.fetch-btn:hover {
    background: #16a085;
}

.loading {
    text-align: center;
    padding: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1B8F6A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: #fee;
    color: #c33;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    border-left: 5px solid #c33;
}

.hidden {
    display: none;
}

.tax-info {
    padding: 30px;
}

.property-header {
    background: #1B8F6A;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.property-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.owner-info .icon {
    color: #1B8F6A;
    font-size: 1.2rem;
}

.owner-info .name {
    font-size: 1.1rem;
    font-weight: 600;
}

.tax-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.tax-section {
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.current-year {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-left: 5px solid #28a745;
}

.previous-due {
    background: linear-gradient(135deg, #fff3cd, #fef9e7);
    border-left: 5px solid #ffc107;
}

.total-due {
    background: linear-gradient(135deg, #f8d7da, #fdeaea);
    border-left: 5px solid #dc3545;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.tax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tax-row:last-child {
    border-bottom: none;
}

.tax-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.tax-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.current-year .tax-amount {
    color: #28a745;
}

.previous-due .tax-amount {
    color: #ffc107;
}

.total-due .tax-amount {
    color: #dc3545;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .scanner-container {
        flex-direction: column;
    }
    
    .tax-sections {
        grid-template-columns: 1fr;
    }
}
.payment-link {
    text-align: center;
    margin-top: 20px;
}
.payment-link a {
    font-weight: bold;
    font-size: 18px;
    color: blue;
    text-decoration: underline;
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}
.modal.hidden {
    display: none;
}
.modal-content {
    background-color: white;
    border-radius: 6px;
    padding: 20px;
    width: 300px;
    text-align: center;
    position: relative;
}
.modal-header {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    margin: -20px -20px 10px -20px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}
.modal-body img {
    width: 100%;
    height: auto;
    max-width: 250px;
}

