@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* GLOBAL FONT === */
body, input, select, textarea, button, .sidebar, .main-content,
.card, .dashboard-card, .form-container, .form-row,
h1, h2, h3, h4, h5, h6, p, a {
  font-family: 'Poppins', sans-serif !important;
}

/* GENERAL LAYOUT */
body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* === SIDEBAR === */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #18234b;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    transition: all 0.3s ease;
    z-index: 1500;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

/* Sidebar Header */
.sidebar-header {
    text-align: center;
    padding: 10px 0;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 18px;
}

/* Sidebar List */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.sidebar ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    transition: background 0.3s ease;
    border-radius: 5px;
}

.sidebar ul li a:hover {
    background-color: #2976bb;
}

/* ACTIVE PAGE */
.sidebar ul li a.active {
    background-color: #2976bb;
    font-weight: bold;
}

/* TOGGLE BUTTON (ALWAYS VISIBLE) */
#toggleSidebar {
    position: fixed;
    top: 15px;
    left: 15px;
    background: #2976bb;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    z-index: 2000;
}

/* === MAIN CONTENT === */
.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

body.sidebar-hidden .main-content,
body.sidebar-collapsed .main-content {
    margin-left: 0 !important;
}

/* === CARDS & DASHBOARD === */
.dashboard-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 20px;
    width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 {
    font-size: 18px;
    color: #2976bb;
}

.card p {
    font-size: 22px;
    font-weight: bold;
}

/* BUTTONS */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #2976bb;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #18234b;
}

/* General Button Styling */
button.edit-btn, button.delete-btn {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

/* Edit Button */
button.edit-btn {
    background-color: #2976bb;
    color: white;
    border: none;
}

button.edit-btn:hover {
    background-color: #215c96;
}

/* Delete Button */
button.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
}

button.delete-btn:hover {
    background-color: #c0392b;
}

/* Responsive buttons */
@media screen and (max-width: 768px) {
    button.edit-btn, button.delete-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* DASHBOARD GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* DASHBOARD CARD */
.dashboard-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 5px solid #2976bb;
}

/* --- Add Bid Form Styles --- */
.form-container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-row label {
    font-weight: bold;
    margin-bottom: 6px;
    color: #18234b;
}

.form-row input,
.form-row select,
.form-row textarea {
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    color: #333;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #2976bb;
    background-color: #fff;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
    }

    .dashboard-cards {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.agent-color-juliet { background-color: #e6ccff; }       /* pastel purple */
.agent-color-em { background-color: #d6f0ff; }            /* pastel light blue */
.agent-color-mary { background-color: #40e0d0; }          /* turquoise */
.agent-color-glory { background-color: #d2f5d2; }         /* pastel green */
.agent-color-john { background-color: #008080; color: white; } /* teal */
.agent-color-des { background-color: #6932a8; color: white; }  /* pastel #6932a8 */
.agent-color-joy { background-color: #FC6C85; color: white; }  /* #FC6C85 */
.agent-color-julie { background-color: #6da199; color: white; }/* #6da199 */
.agent-color-bart { background-color: #2377bb; color: white; } /* #2377bb */
.agent-color-ayn { background-color: #ffffcc; }            /* pastel yellow */
.agent-color-adam { background-color: #ffcc99; }           /* pastel orange */
.agent-color-jane { background-color: #cf9fff; }           /* #cf9FFF */

.agent-name-label {
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* === BID BOARD TABLE HEADER COLOR === */
.bid-table thead {
    background-color: #2976bb; /* Match Add Bid button blue */
    color: white;
    font-weight: bold;
}

.bid-table th {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}
.clickable-row {
    cursor: pointer;
}

.weather-card {
  background: linear-gradient(to right, #223d70, #1e2d56);
  color: white;
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.weather-location {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.weather-temp {
  font-size: 36px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-warning {
  font-size: 14px;
  color: yellow;
  margin-top: 8px;
}

.weather-footer {
  margin-top: 20px;
}

.weather-footer a {
  background-color: rgba(255,255,255,0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.weather-footer a:hover {
  background-color: rgba(255,255,255,0.3);
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background-color: #2976bb;
  color: white;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeInOut 4s forwards;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  max-width: 300px;
  opacity: 0;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-20px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  width: 500px;
  max-width: 95%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.modal input, .modal select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal .modal-actions {
  margin-top: 20px;
  text-align: right;
}

.btn.btn-save {
  background: #28a745;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
}

.btn.btn-cancel {
  background: #ccc;
  color: black;
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
}


