/* Fonts */
/*@font-face {
    font-family: 'Inter';
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');
    font-display: swap;
}*/

/* Water Balance Interface Styles */
#waterBalance {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #BBDEFB;
    --secondary-color: #607D8B;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FFC107;
    --info-color: #00BCD4;
    --light-color: #FAFAFA;
    --dark-color: #212121;
    --border-color: #E0E0E0;
    --text-color: #212121;
    --text-secondary: #757575;
    --bg-color: #F5F5F5;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* Mouse Position Control Style */


/* Tree Styles */
#irrigationTree {
    height: 100%;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    background: white;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#irrigationTree .fancytree-node {
    padding: 4px 0;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#irrigationTree .fancytree-title {
    font-size: 14px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* Water Requirements Table */
#waterRequirementsTable {
    margin-bottom: 0;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#waterRequirementsTable th {
    background-color: var(--light-color);
    font-weight: 600;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#waterRequirementsTable .water-requirement {
    width: 120px;
    text-align: right;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#waterRequirementsTable .edit-btn {
    min-width: 80px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* Rain Stations Map */
#rainStationsMap {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* Results Section */
#resultsSection .card {
    margin-bottom: 20px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#resultsSection .card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#resultsSection .card-title {
    margin-bottom: 0;
    color: var(--text-color);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* Charts */
#waterDeficitChart,
#actualDeficitChart,
#dailyWaterUsageChart,
#seasonalWaterUsageChart {
    height: 300px;
    margin: 15px 0;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* Calculate Button */
#calculateBtn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#calculateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#calculateBtn:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    #waterBalance .row {
        flex-direction: column;
    }

    #waterBalance .col-md-3,
    #waterBalance .col-md-9 {
        width: 100%;
        max-width: 100%;
    }

    #rainStationsMap {
        height: 250px;
    }

    #waterRequirementsTable .water-requirement {
        width: 100px;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Chart Tooltips */
.k-chart-tooltip {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Global Styles */
/*body {
    font-family: 'Inter', 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

p, span, div {
    font-family: 'Inter', 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

input, select, textarea, button {
    font-family: 'Inter', 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
} */

@media (max-width: 900px) {
    #dragbar {
        display: none;
    }

    #idLeft, #idRight {
        flex: 0 0 100%;
        max-width: 100%;
    }
}