body {
    font-family: Arial, sans-serif;
    margin: 10px;
    padding: 12px;
    display: flex;
    background-color: #f4f4f4;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    text-align: center;
    color: #ecf0f1;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px;
}

.sidebar ul li a {
    color: blue;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
}

.sidebar ul li a.active {
    text-decoration: underline;
}

.sidebar ul li a:hover {
    color: #ffffff;
    background-color: #2980b9;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
}

.header-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

input[type="text"] {
    padding: 10px;
    width: 250px;
    font-size: 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
}

button#get-weather {
    padding: 8px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button#get-weather:hover {
    background-color: #2980b9;
}

.user-profile {
    position: relative;
    display: flex;
    justify-content: center;
}

.user-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #bdc3c7;
}

.weather-widget {
    margin-top: 30px;
    padding: 20px;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
}

.weather-inner {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

#icon {
    width: 80px;
    height: 80px;
}

.charts-section {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.chart-container {
    width: 32%;
}

canvas {
    width: 100%;
    height: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.temperature-details {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#temp-sort-dropdown {
    padding: 10px;
    font-size: 16px;
    width: 220px;
    margin-bottom: 10px;
}

#sorted-temp-results {
    margin-top: 15px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

#sorted-temp-results:hover {
    background-color: #bdc3c7;
}

#rainy-days-result, #highest-temp-result {
    margin-top: 15px;
    color: black;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

#rainy-days-result:hover, #highest-temp-result:hover {
    background-color: #bdc3c7;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    opacity: 0;
    transition: opacity 2s ease-in;
}

.fade-in.visible {
    opacity: 1;
}

.hidden {
    display: none;
}

.table-chat-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.table-section {
    width: 60%;
    overflow-x: auto;
}

.chatbot-section {
    width: 35%;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chat-interface {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#chat-input {
    padding: 10px;
    width: 70%;
}

#chat-send {
    padding: 10px;
    background-color: #3498db;
    color: white;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#chat-send:hover {
    background-color: #2980b9;
}

#forecast-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

#forecast-table th, #forecast-table td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
    word-wrap: break-word;
}

#pagination {
    margin-top: 10px;
    text-align: center;
}

#dashboard-link, #tables-link {
    color: blue;
    transition: color 0.3s;
}

#dashboard-link:hover, #tables-link:hover {
    color: #ffffff;
}

#dashboard-link.active, #tables-link.active {
    text-decoration: underline;
}
