.logo-img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

/* General Body and Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff; /* AliceBlue */
    color: #333;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-form {
    background-color: #ffffff;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form h2 {
    color: #005f73;
    margin-bottom: 0.5rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.login-logo img {
    max-width: 150px;
}

.login-footer-info {
    margin-top: 2rem;
    font-size: 0.8em;
    color: #6c757d;
    text-align: center;
}

.login-form p {
    margin-bottom: 1.5rem;
    color: #555;
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #005f73;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #00a9b8;
}

.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230077b6' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.btn {
    background-color: #0077b6;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #005f73;
}

.btn-logout {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.btn-logout:hover {
    background-color: #0056b3;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* General Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
.main-header {
    background-color: #ffffff;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo a {
    text-decoration: none;
    color: #005f73;
    font-size: 1.5rem;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    text-decoration: none;
    color: #005f73;
    font-weight: 500;
    padding: 1.5rem 0;
    display: block;
    position: relative;
    transition: color 0.2s;
}

.main-nav ul li a:hover {
    color: #00a9b8;
}

.main-nav ul li a.active {
    color: #00a9b8;
    font-weight: 700;
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #00a9b8;
}


.header-actions .btn-logout {
    background-color: transparent;
    color: #0077b6;
    border: 1px solid #0077b6;
    padding: 0.5rem 1rem;
}

.header-actions .btn-logout:hover {
    background-color: #0077b6;
    color: #ffffff;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px); /* Adjust based on header/footer height */
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    color: #005f73;
    font-size: 0.9rem;
}

/* Page specific title */
.page-title {
    color: #005f73;
    border-bottom: 2px solid #e0f7fa;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.page-actions {
    margin-bottom: 1.5rem;
}

.form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 600px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


/* Home Page - Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-left: 5px solid #00a9b8;
}

.stat-card h3 {
    margin: 0 0 0.5rem 0;
    color: #005f73;
    font-size: 1rem;
}

.stat-card p {
    margin: 0;
    color: #0077b6;
    font-size: 2rem;
    font-weight: 700;
}

/* Home Page - Charts */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.chart-container {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chart-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #005f73;
}

/* Scooters Page Table */
.scooters-table-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.scooters-table {
    width: 100%;
    border-collapse: collapse;
}

.scooters-table th,
.scooters-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e0f7fa;
}

.scooters-table thead th {
    background-color: #e0f7fa;
    color: #005f73;
    font-weight: 600;
}

.scooters-table tbody tr:last-child td {
    border-bottom: none;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    fill: #dc3545;
    transition: fill 0.2s ease-in-out;
}

.btn-icon:hover svg {
    fill: #a71d2a;
}

.scooters-table tbody tr:hover {
    background-color: #f0f8ff;
}

.battery-indicator {
    width: 100px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.battery-level {
    height: 100%;
    background-color: #4caf50; /* Green */
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
}

.battery-indicator span {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #333;
    font-size: 0.8rem;
    line-height: 20px;
    font-weight: 500;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    color: #000;
    font-weight: bold;
    font-size: 0.9em;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.status-εvεργό {
    background-color: #28a745;
}

.status-χαμηλή-μπαταρία {
    background-color: #ffc107;
    color: #333;
}

.status-σε-συντήρηση {
    background-color: #dc3545;
}

/* About Page */
.about-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-content h2 {
    color: #0077b6;
}

.about-content h3 {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 5px;
    margin-top: 20px;
}

.project-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #0056b3;
}

.project-info h3 {
    margin-top: 0;
    border-bottom: none;
}

/* Navigate Page */
.navigate-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

.navigate-controls {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.navigate-controls h3 {
    color: #005f73;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
}

.navigate-map-container, #map {
    height: 70vh;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #555;
    margin-top: 0.25rem;
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* The switch - a checkbox disguised as a toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #0077b6;
}

input:focus + .slider {
  box-shadow: 0 0 1px #0077b6;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 28px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Responsive Design & Mobile Navigation */
.nav-toggle {
    display: block; /* Was none */
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 30px;
    height: 3px;
    background: #333;
    transition: all 0.2s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    top: 10px;
}

/* Animate to X when nav is visible */
.nav-visible .hamburger {
    background: transparent;
}

.nav-visible .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-visible .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}


.main-header {
    justify-content: space-between;
    padding: 15px 20px;
}

.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px; /* Fixed width for consistency */
    max-width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.main-nav.nav-visible {
    right: 0;
}

.main-nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.main-nav ul li {
    margin: 20px 0;
}

.main-nav ul li a {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.2s;
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
    background-color: #f0f0f0;
}

.main-nav ul li .btn-logout {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.main-nav ul li .btn-logout:hover {
    background-color: #0056b3;
    color: #fff;
}

.header-actions {
    display: none; /* Hide by default, will be moved into mobile nav */
}

.route-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}


@media (max-width: 850px) {

    .stats-grid,
    .charts-grid,
    .navigate-layout {
        grid-template-columns: 1fr;
    }

    .scooters-table-container {
        /* Remove overflow properties */
    }

    .scooters-table thead {
        display: none; /* Hide table headers on mobile */
    }

    .scooters-table, .scooters-table tbody, .scooters-table tr, .scooters-table td {
        display: block;
        width: 100%;
    }

    .scooters-table tr {
        box-sizing: border-box;
        margin-bottom: 1rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .scooters-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .scooters-table tr td:last-child {
        border-bottom: none;
    }

    .scooters-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        padding-right: 1rem;
    }

    .battery-indicator {
        margin-left: auto; /* Pushes battery indicator to the right */
    }

    .scooters-table .btn-icon {
        margin-left: auto;
    }

     .login-container {
        width: 90%;
        padding: 20px;
    }
}
