/* =======================
   General Styles
======================= */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding-top: 60px;
}
.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =======================
   Top Bar
======================= */
.top-bar {
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    background-color: #007BFF;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 2px solid #0056b3;
    border-radius: 5px;
    margin-bottom: 20px;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}
.top-bar-logo {
    max-width: 100%;
    height: auto;
    width: 115px;
}
.top-bar .left {
    flex: 1;
}
.top-bar .center {
    flex: 1;
    justify-content: center;
    display: flex;
}
.top-bar .right a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, background-color 0.3s;
    padding: 6px 12px;
    border-radius: 4px;
}
.top-bar .right a:hover {
    background-color: #0056b3;
}

/* =======================
   Menu Buttons & Dropdown
======================= */
.dropdown {
  position: relative;
  display: inline-block;
}

.menu-btn {
  background-color: #007BFF;
  border: 0px ;
  padding: 8px 12px;
  cursor: pointer;
}

.menu-btn:hover {
  background-color: #0056b3; /* darker blue */
  color: white; /* optional: changes text color */
  font-weight: bold; /* optional: makes it bold on hover */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #007BFF;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 9999;
  flex-direction: column;
  padding: 10px;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown-content a {
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #0056b3;
}

.submenu-wrapper {
  position: relative;
}

.submenu-toggle {
  padding: 8px 12px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

.submenu-items {
  position: absolute;
  left: 100%;
  top: 0;
  display: none;
  background-color: #007BFF;
  min-width: 220px;
  padding: 10px;
  z-index: 2;
  border-left: 1px solid #0056b3;
}

.submenu-wrapper:hover .submenu-items,
.submenu-items:hover {
  display: flex;
  flex-direction: column;
}
/* =======================
   Tables
======================= */
table {
    font-family: system-ui, Arial, sans-serif;
    font-size: 13px;
    table-layout: auto;
    width: 100%;
}
th, td {
    padding: 6px 8px;
}
th {
    font-weight: 600;
    background-color: #eaeaea;
}

/* =======================
   Buttons
======================= */
button, input[type="submit"] {
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}
button:hover, input[type="submit"]:hover {
    background-color: #0056b3;
}

/* =======================
   Index Page & Cards
======================= */
.index-container {
    display: flex;
    gap: 40px;
    padding: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.login-box {
    width: 280px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 8px;
}
.services {
    flex: 1;
}
.services-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.service-box {
    background-color: #e8f1ff;
    border-left: 5px solid #007BFF;
    padding: 15px;
    border-radius: 6px;
}
.service-box h3 {
    margin-top: 0;
    color: #0056b3;
}

/* =======================
   Forms
======================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}
select option {
    background-color: white;
    color: #333;
}
label {
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
}
textarea {
    min-height: 100px;
}
.form-group {
    margin-bottom: 15px;
}
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.form-row label {
    width: 200px;
    margin-right: 10px;
    font-weight: bold;
}
.form-row input,
.form-row select,
.form-row textarea {
    flex: 1;
}
.form-row input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.8);
    cursor: pointer;
}
.movements-form {
    font-size: 1.1em;
}
.movements-form label,
.movements-form input,
.movements-form select,
.movements-form textarea {
    font-size: 1.1em;
}
.movements-form input[type="radio"] {
    transform: scale(1.5);
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
}
input[type=range] {
  accent-color: #0d6efd; /* Bootstrap 5 primary blue */
}

/* Optional: make track thicker and darker */
input[type=range]::-webkit-slider-runnable-track {
  background: #0d6efd;
  height: 6px;
  border-radius: 3px;
}
input[type=range]::-moz-range-track {
  background: #0d6efd;
  height: 6px;
  border-radius: 3px;
}
/* =======================
   Footer
======================= */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    padding: 15px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}
footer .container {
    max-width: 1000px;
    margin: 0 auto;
}
footer div:first-child {
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

/* =======================
   Live Status Card
======================= */
.live-status-card {
    max-width: 350px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 16px;
    background: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}
.status-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}
.heartbeat-dot {
    width: 18px;
    height: 18px;
    background-color: #007BFF;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    margin-bottom: 10px;
}
.status-text {
    font-size: 0.95rem;
    color: #444;
}
.g2g-section h4 {
    font-weight: 600;
    margin-bottom: 10px;
}
#g2gTime {
    font-size: 2.5rem;
    color: #ff7f50;
    margin: 0;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* =======================
   Responsive
======================= */
@media screen and (max-width: 600px) {
    table {
        font-size: 12px;
    }
    .top-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .center, .right {
        width: 100%;
        margin-top: 10px;
    }
    .dropdown .menu-btn,
    .dropdown .language-btn {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
    .dropdown-content {
        position: static;
        width: 100%;
        display: none;
    }
    .dropdown-content.show {
        display: block;
    }
}
