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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1B3B5F, #1B3B5F, #1B3B5F);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 12px;
    margin-top: 60px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
   
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}


.close-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main content */
.main-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 32px;
    min-height: 600px;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #B87854;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #B87854;
    margin-right: 12px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #B87854;
    color: white;
}

.btn-primary:hover {
    background: #1B3B5F;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover {
    background: #047857;
}

.btn-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

/* Results styles */
.result-highlight {
    background: linear-gradient(135deg, #B87854, #059669);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.result-highlight h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.result-highlight .amount {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 4px;
}

.result-highlight .subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.cost-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cost-detail:last-child {
    border-bottom: none;
    font-weight: 600;
    border-top: 2px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 8px;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.alert-warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-danger {
    background: #fecaca;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

/* Utility classes */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.space-y-4 > * + * {
    margin-top: 16px;
}

.space-y-6 > * + * {
    margin-top: 24px;
}

.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 32px;
    border-radius: 12px;
}

/* Tax breakdown specific styles */
.tax-breakdown {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.tax-breakdown h4 {
    color: #92400e;
    font-size: 16px;
    margin-bottom: 12px;
}

.tax-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #fde68a;
}

.tax-detail:last-child {
    border-bottom: none;
    font-weight: 600;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid #fde68a;
}

.tax-method {
    background: #e0f2fe;
    border: 1px solid #0288d1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #01579b;
    margin-top: 8px;
}

/* Dynamic form visibility */
.conditional-field {
    transition: opacity 0.3s ease, height 0.3s ease;
}

.conditional-field.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .btn-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .result-highlight .amount {
        font-size: 24px;
    }
    
    .container {
        padding: 10px;
    }
    
    .main-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .result-highlight {
        padding: 16px;
    }
    
    .result-highlight .amount {
        font-size: 20px;
    }
    
    .card {
        padding: 16px;
    }
}

/* Print styles for PDF */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .header, .footer, .btn, .close-button {
        display: none;
    }
    
    .main-card {
        background: white;
        box-shadow: none;
        padding: 20px;
    }
    
    .alert {
        border: 1px solid #ccc;
        background: #f9f9f9 !important;
        color: #333 !important;
    }
    
    .result-highlight {
        background: #f0f0f0 !important;
        color: #333 !important;
        border: 2px solid #ccc;
    }
}

