@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

        :root {
            --primary: #0B2F9F;
            --primary-light: #4caf50;
            --secondary: #1565c0;
            --accent: #f9a825;
            --light-bg: #f5f9f5;
            --card-bg: #ffffff;
            --text: #333333;
            --text-light: #666666;
            --border: #e0e0e0;
            --data-mining: #7b1fa2;
            --header-green: #216b40;


            --green: #6a994e;
            --light-brown :#f2e8cf;
            --light-green: #a7c957;
            --dark-blue: #0B2F9F;
            --red: #bc4749;
            --dark-yellow:#ff9738;
            --blue:#00a5cf;
            --grey:#333;

            --light-grey: #f4f4f4;
            --bs-link-color-rgb: #0B2F9F;


        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Roboto';
        }

        html {
            height: 100%;
        }

        .d-block-high {
            display: block !important;
        }

        .nav-link {
            color:inherit;
        }
        
        body {
            background-color: var(--light-grey);
            color: var(--text);
            line-height: 1.6;
            display:flex;
            flex-direction: column;
            justify-content: space-between;
            height:100%;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }


        p {
            margin-top: 0;
            margin-bottom: 0;
        }

        
        header {
            background: #fff;
            padding: 1rem 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding:0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .logo i {
            font-size: 2.5rem;
        }
        
        .logo h1 {
            font-size: 1rem;
            line-height: 100%;
            text-shadow: 2px 2px 2px rgba(255,255,255,0.5);
            font-weight: 400;
        }

        .logo h2 {
        	line-height: 100%;
        }

        .logo img {
        	max-width: 100px;
            max-height: 40px;
        }


        
        .date-display {
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
        }
        
        .dashboard {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .header-right {
            display:flex;
            justify-content: space-between;
            align-items: center;
        }
        

        .left-panel, .right-panel {
    min-width: 0;
}

        @media (max-width: 1100px) {
            .dashboard {
                grid-template-columns: 1fr;
            }
        }


/*******************************************
Daily Monitoring
*******************************************/


             .price-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }
        
        .price-card {
            padding: 15px;
            border-radius: 8px;
            background-color: #f8f9fa;
        }
        
        .price-card h3 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 5px;
            color: var(--text);
            font-weight: 400;
        }

        .price-card h3 span{
            font-size:1rem;
        }
        
        .price-value {
            font-size: 1.2rem;
            font-weight: 700;
            margin: 5px 0;
        }
        
        .price-high {
            color: var(--primary);
        }
        
        .price-low {
            color: #777;
        }
        
        .price-change {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.9rem;
            margin-top: 10px;
        }
        
        .down {
            color: #d32f2f;
        }
        
        .up {
            color: var(--green);
        }

        .price-card-bottom {
            margin-top:1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        #showActualBtn {
            font-size: 0.8rem;
            background:var(--primary);
            color:#fff;
        }
/*******************************************
Price Forecast
*******************************************/

#price-forecast-card .lds-ellipsis,
#price-forecast-card .lds-ellipsis div {
  box-sizing: border-box;
}

#price-forecast-card .lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  color: #1565c0; /* Customize color here */
  vertical-align: middle;
}

#price-forecast-card .lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: var(--dark-blue);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

#price-forecast-card .lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
#price-forecast-card .lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
#price-forecast-card .lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
#price-forecast-card .lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
@keyframes lds-ellipsis3 {
  0% { transform: scale(1); }
  100% { transform: scale(0); }
}
@keyframes lds-ellipsis2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(24px, 0); }
}

#price-forecast-card .spinner-text {
  display: inline-block;
  margin-left: 8px;
  font-weight: 500;
  color: #333;
  vertical-align: middle;
}

#price-forecast-card #price-forecast-controls {
	display: none;
}

/*******************************************
Data Mining
*******************************************/
        .box {
            background-color: var(--card-bg);
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .box-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }
        
        .box-title {
            font-size: 1rem;
            font-weight: 400;
            /*color: var(--primary);*/
            display: flex;
            align-items: center;
            gap: 10px;
            /*color:var(--dark-blue);*/
        }
        
        
        
   


.box-header h2 {
    flex-shrink: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
        
   
        .data-mining-controls-top {
        	display:flex;
        	justify-content: space-between;
        }

        .data-mining-controls,.time-controls,#price-forecast-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .control-btn, .time-btn {
            padding: 8px 15px;
            background-color: var(--light-grey);
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
            color:#666;
        }
        
       
        
        .control-btn.active ,.time-btn.active {
            background-color: var(--primary);
            color: white;
        }
        
        
        
        .data-fetching {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 15px;
            padding: 10px;
            background-color: #f5f5f5;
            border-radius: 8px;
        }
        
        .progress-bar {
            height: 8px;
            background-color: #e0e0e0;
            border-radius: 4px;
            overflow: hidden;
            flex-grow: 1;
        }
        
        .progress {
            height: 100%;
            background-color: var(--data-mining);
            width: 0%;
            transition: width 0.5s;
        }
        
        footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: var(--text-light);
            font-size: 0.9rem;
            border-top: 1px solid var(--border);
        }
        
        .last-updated {
            font-size: 0.8rem;
            color: var(--text-light);
            text-align: right;
            margin-top: 10px;
        }
        
        .data-range {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-top: 10px;
        }
.data-mining-chart {
    height: 400px;
    margin-top: 20px;
}



/*******************************************
Weather Grid
*******************************************/

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.weather-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-card h3 {
    font-weight: 400;
    font-size: 1rem;
}

.weather-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.weather-icon {
    font-size: 1.2rem;
    /*color: var(--light-green);*/
    margin-bottom: 8px;
}

.weather-temp {
    font-size: 1rem;
    font-weight: 400;
}

/* Forecast Scroll Section */
.forecast-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 12px 16px 10px; /* add left & right breathing space */
    scroll-snap-type: x mandatory;
    scroll-padding: 16px; /* ensures first/last card align nicely when snapped */
    margin-top: 20px;
    overflow-y: visible; /* keep shadows visible */
}



.forecast-scroll::-webkit-scrollbar {
    height: 8px;
}

.forecast-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.forecast-container {
    display: inline-flex;
    gap: 10px;
    align-items: flex-start; /* ensures cards aren't clipped vertically */
}

.forecast-day {
    flex: 0 0 120px;
    background: linear-gradient(to bottom right, #e8f5e9, #f1f8e9);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    padding: 12px;
    scroll-snap-align: start;
    transition: transform 0.2s ease;
    min-width: 100px;
    flex-shrink: 0;
    margin-top: 2px; /* slight breathing room to prevent cropping */
}


.forecast-day:hover {
    transform: translateY(-5px);
}

.forecast-day h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0;
}

.forecast-day small {
	display:block;
	margin-bottom:8px;
}

.forecast-icon {
    font-size: 1.8rem;
    color: var(--light-green);
    margin: 5px 0;
}

.fa-cloud-sun.forecast-icon {
	color:var(--grey);
}

.fa-sun.forecast-icon,.fa-bolt.forecast-icon {
	color:var(--dark-yellow);
}

.fa-cloud-rain.forecast-icon {
	color:var(--blue);
}

/*.fa-temperature-high.weather-icon{
	color:var(--red);
}

.fa-thermometer-half.weather-icon{
	color:var(--dark-yellow);
}

.fa-cloud-rain.weather-icon {
	color:var(--grey);
}*/

.temp-range {
    font-size: 0.9rem;
    font-weight: 600;
}

.temp-max {
    color: #d32f2f;
}

.temp-min {
    color: var(--secondary);
}

.forecast-chart {
    height: 300px;
    margin-top: 20px;
}



.forecast-note {
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--accent);
}


.forecast-day.active {
    transform: scale(1.05);
    border: 2px solid #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}
.forecast-date {
    font-size: 0.8rem;
    color: #555;
}

.sunny  { background: linear-gradient(to bottom right, #fff8e1, #fff3c4); }
.cloudy { background: linear-gradient(to bottom right, #e3f2fd, #bbdefb); }
.rainy  { background: linear-gradient(to bottom right, #bbdefb, #90caf9); }
.stormy { background: linear-gradient(to bottom right, #90caf9, #64b5f6); }

#addPriceForm h6 ,#editPriceForm h6 {
    padding-bottom:6px;
    border-bottom:1px solid #eee;
}

#addPriceForm h6 span {
    font-size: 0.8rem;
    font-weight: normal;
}

#addPriceForm .form-label,#editPriceForm .form-label {
    font-size:0.9rem;
}

input[readonly] {
    background-color: #e9ecef;   /* Light gray */
    opacity: 1;                  /* Avoid fading text too much */
    pointer-events: none;        /* Prevent clicking/selecting */
    cursor: not-allowed;         /* Disabled cursor */
}


/* Add to your <style> section */
.row-highlight {
    animation: glowHighlight 3s ease-out;
    position: relative;
}

@keyframes glowHighlight {
    0% {
        box-shadow: 0 0 3px 2px rgba(0, 123, 255, 0.7); /* blue glow */
    }
    100% {
        box-shadow: none;
    }
}

td.select-checkbox {
    cursor: pointer;
}

#dashboard-main div.dt-container .dt-search input{
    margin-left:8px;
}


.smaller-fs {
    font-size:0.9rem;
}