.dbr-calculator-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    background: #ddd;
}

.dbr-form-columns {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.dbr-form-column {
    flex: 1;
    min-width: 300px;
}

.dbr-section {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.dbr-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.dbr-form-group {
    margin-bottom: 15px;
}

.dbr-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.dbr-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.dbr-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.dbr-tooltip {
    cursor: help;
    margin-left: 5px;
    font-size: 0.9em;
    opacity: 0.7;
}

.dbr-form-actions {
    text-align: center;
    margin: 20px 0;
}

.dbr-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.dbr-button-primary {
    background-color: #3498db;
    color: white;
}

.dbr-button-primary:hover {
    background-color: #2980b9;
}

.dbr-button-secondary {
    background-color: #95a5a6;
    color: white;
}

.dbr-button-secondary:hover {
    background-color: #7f8c8d;
}

/* Results Section */
.dbr-results-columns {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.dbr-results-column {
    flex: 1;
    min-width: 300px;
}

.dbr-results {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #27ae60;
}

.dbr-results h3 {
    color: #27ae60;
    margin-top: 0;
}

.dbr-result-success {
    line-height: 1.6;
}

.dbr-result-success p {
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.dbr-summary-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.dbr-summary-label {
    font-weight: 600;
}

.dbr-summary-value {
    font-weight: bold;
}

.dbr-income {
    color: #27ae60;
}

.dbr-debt {
    color: #e74c3c;
}

.dbr-dbr-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #2980b9;
}

/* Chart Container */
.dbr-chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.dbr-chart-title {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

#dbr-pie-chart {
    width: 100% !important;
    height: 300px !important;
}

.dbr-chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.dbr-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dbr-legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.dbr-legend-income {
    background-color: #27ae60;
}

.dbr-legend-debt {
    background-color: #e74c3c;
}

.dbr-loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.dbr-error {
    color: #e74c3c;
    background: #ffe6e6;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e74c3c;
}

/* Responsive design */
@media (max-width: 768px) {
    .dbr-calculator-container {
        padding: 0 15px;
    }

    .dbr-form-columns,
    .dbr-results-columns {
        flex-direction: column;
        gap: 20px;
    }

    .dbr-button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .dbr-form-actions {
        text-align: center;
    }

    #dbr-pie-chart {
        height: 250px !important;
    }
}




/* Apply Now Button */
.dbr-apply-now-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #27ae60;
}

.dbr-apply-now-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.dbr-apply-now-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    color: white;
}

/* Responsive design for counter */
@media (max-width: 768px) {
    .dbr-counter-container {
        text-align: center;
    }

    .dbr-counter-number {
        font-size: 24px;
    }

    .dbr-apply-now-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}








/* Counter Styles */
.dbr-counter-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    margin: 10px 0;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #ecf0f1;
}

.dbr-counter-title {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: auto;
}

.dbr-counter-number {
    font-size: 32px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    background: #000;
    padding: 5px;
    border-radius: 8px;
    display: inline-block;
    min-width: 300px;
    text-align: center;
    border: 2px solid #7f8c8d;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Digital clock effect */
.dbr-counter-number {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #00ff00; /* Green digital display */
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    }
    to {
        text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
    }
}