.tbr-calculator-container {
    max-width: 775px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #686868;
    box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.05);
    border-radius: 16px !IMPORTANT;
}
.tbr-calculator-wrapper {
    width: 100%;
}
.tbr-title {
    color: #000000;
    text-align: center;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: normal;
    font-family: "Inter", sans-serif !IMPORTANT;
    font-size: 24px !important;
    font-weight: 600 !IMPORTANT;
}
.tbr-form {
    width: 100%;
}
.tbr-section {
    border: 1px solid #686868;
    border-radius: 12px !important;
    padding: 24px;
}
.tbr-section:last-child {
    margin-bottom: 0;
}
.tbr-section-title {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin: 0 0 24px 0;
    padding: 0 0 22px 0;
    border-bottom: 1px solid #686868;
    font-family: "Inter", sans-serif;
}
.tbr-field-group {
    margin-bottom: 24px;
    position: relative;
}
.tbr-field-group:last-child {
    margin-bottom: 0;
}
.tbr-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #000;
    font-family: "Inter", sans-serif;
    margin-bottom: 12px;
}

.tbr-required {
    color: #ef4444;
    margin-left: 2px;
}

/* Input styling */
.tbr-input,
.tbr-select {
    width: 100%;
    padding: 14px !IMPORTANT;
    border: 1px solid #686868 !important;
    font-size: 14px;
    line-height: normal;
    color: #686868 !important;
    background-color: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.tbr-input:focus,
.tbr-select:focus {
    outline: none;
}

.tbr-input::placeholder {
    color: #9ca3af;
}
.tbr-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Disabled/readonly input styling */
.tbr-input[readonly],
.tbr-input[disabled] {
    color: #686868 !important;
    cursor: not-allowed;
}
.tbr-datepicker {
    cursor: pointer !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 002 2z'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 40px;
}
.tbr-datepicker:focus {
    background-color: #ffffff !important;
}
.tbr-button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.tbr-calculate-btn,
.tbr-refresh-btn {
    padding: 13px 20px;
    border-radius: 0 !IMPORTANT;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    border: 1px solid#194C9F !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins' !important;
    gap: 10px;
}
.tbr-calculate-btn {
    background-color: #194C9F !important;
    border-color: #194C9F !important;
    color: #ffffff;
}
.tbr-calculate-btn:active {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}
.tbr-refresh-btn {
    background-color: #ffffff;
    border-color: #194C9F;
    color: #194C9F;
}
.tbr-refresh-btn:hover {background: #194C9F !important;color: #fff !important;}
.tbr-refresh-btn:active {
    background-color: #f3f4f6;
}
.tbr-calculate-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.tbr-calculate-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.tbr-error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    line-height: 1.4;
}
.tbr-error-message.show {
    display: block;
}
.tbr-result-input.updated {
    background-color: #f0fdf4;
    border-color: #22c55e;
    transition: all 0.3s ease;
}
.tbr-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    max-width: 300px;
    word-wrap: break-word;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.tbr-notification.success {
    background-color: #10b981;
}
.tbr-notification.error {
    background-color: #ef4444;
}
.tbr-notification.info {
    background-color: #3b82f6;
}
.tbr-notification.warning {
    background-color: #f59e0b;
}
.flatpickr-calendar {
    font-family: inherit !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}
.flatpickr-months {
    background: #3b82f6 !important;
    border-radius: 6px 6px 0 0 !important;
}
.flatpickr-current-month {
    color: white !important;
}
.flatpickr-prev-month,
.flatpickr-next-month {
    color: white !important;
}
.flatpickr-day:hover {
    background: #3b82f6 !important;
    color: white !important;
}
.flatpickr-day.selected {
    background: #1d4ed8 !important;
    color: white !important;
}
.tbr-calculate-btn:hover {
    background: #fff !important;
    color: #194C9F !important;
}
.tbr-calculate-btn:hover svg path {
    fill: #194C9F !important;
}
.tbr-calculate-btn:hover svg line {
    stroke: #194C9F !important;
}
.tbr-refresh-btn:hover svg path {
    fill: #fff;
}
.tbr-refresh-btn:hover svg line {
    stroke: #fff;
}
 .tbr-section.tbr-input-section {
    margin-bottom: 24px;
}


@media only screen and (max-width: 1199px) {
.tbr-title { 
    font-size: 20px !important; 
}
.tbr-calculator-container { 
    padding: 18px; 
}
.tbr-section { 
    padding: 18px;
}
.tbr-section-title {
    font-size: 16px;  
    margin: 1px 0 18px 0;
    padding: 0 0 16px 0; 
}


}

@media only screen and (max-width: 450px) {

.tbr-calculate-btn, .tbr-refresh-btn {
    padding: 10px 14px; 
    font-size: 14px; 
}
.tbr-input, .tbr-select { 
    padding: 12px !IMPORTANT; 
    font-size: 13px; 
}
.tbr-field-group {
    margin-bottom: 20px; 
}
}


@media only screen and (max-width: 380px) {

.tbr-button-group { 
    flex-direction: column;
}

.tbr-calculate-btn, .tbr-refresh-btn {
    width: 100%;
    max-width: 60%;
}
}