/* ====== GLOBAL RESET & FONTS ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}
body {
    background: linear-gradient(135deg, #202124 0%, #23272f 100%);
    color: #e4e6eb;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 1.01em;
}

/* === Animations & Transitions for User-Friendly UI === */
:root {
  --anim-fast: 0.18s cubic-bezier(.4,1.4,.6,1);
  --anim-med: 0.35s cubic-bezier(.4,1.4,.6,1);
  --anim-slow: 0.7s cubic-bezier(.4,1.4,.6,1);
}

/* Buttons */
button, .signup-btn, .modal-btn, .add-tech-btn, .action-btn {
  transition: background var(--anim-fast), color var(--anim-fast), box-shadow var(--anim-fast), transform var(--anim-fast), border var(--anim-fast);
}
button:hover, .signup-btn:hover, .modal-btn:hover, .add-tech-btn:hover, .action-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 2px 8px #ffd60044;
}

/* Cards & Dashboard */
.dashboard-card, .dashboard-chart-card, .account-table, .activity-log-table, .landarea-panel, .signup-container {
  transition: box-shadow var(--anim-med), background var(--anim-fast), transform var(--anim-fast);
}
.dashboard-card:hover, .dashboard-chart-card:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-light, #ffd60044);
}

/* Sidebar */
nav {
  transition: transform var(--anim-med), box-shadow var(--anim-fast);
}
nav.open {
  animation: sidebarSlideIn var(--anim-med) 1;
}
@keyframes sidebarSlideIn {
  0% { transform: translateX(-100%); box-shadow: none; }
  100% { transform: translateX(0); box-shadow: 2px 0 12px rgba(0,0,0,0.10); }
}
nav a {
  transition: background var(--anim-fast), color var(--anim-fast), border-color var(--anim-fast), padding var(--anim-fast), opacity var(--anim-fast);
}
nav a:hover, nav a.active {
  animation: navLinkPop var(--anim-fast) 1;
}
@keyframes navLinkPop {
  0% { transform: scale(0.98); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Modals */
#edit-user-modal, #add-technician-modal, #about-modal, #help-modal, #logout-confirmation {
  animation: fadeInBg var(--anim-slow) 1;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-content {
  animation: modalPopIn var(--anim-med) 1;
}
@keyframes modalPopIn {
  0% { transform: scale(0.92) translateY(32px); opacity: 0; }
  60% { transform: scale(1.04) translateY(-8px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Form Elements */
input, select, textarea {
  transition: border var(--anim-fast), box-shadow var(--anim-fast), background var(--anim-fast), color var(--anim-fast);
}
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 2px #ffd60044;
  border-color: #ffd600;
}

/* Table Rows */
.account-table tr, .activity-log-table tr, #report-content tr {
  transition: background var(--anim-fast), color var(--anim-fast);
}
.account-table tr:hover, .activity-log-table tr:hover, #report-content tr:hover {
  background: #292b32;
  color: #ffd600;
}

/* Floating Widgets & Panels */
#quick-notes-widget, #todo-widget, #help-btn, #open-notes-widget, #open-todo-widget, #theme-toggle-home {
  transition: box-shadow var(--anim-fast), transform var(--anim-fast), background var(--anim-fast), color var(--anim-fast);
}
#quick-notes-widget:hover, #todo-widget:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 8px 32px #ffd60044;
}

/* Fade-in for containers */
.container, .section, main {
  animation: fadeInUpGlobal var(--anim-slow) 1;
}
@keyframes fadeInUpGlobal {
  0% { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Miscellaneous */
.dot, .status-dot {
  transition: background var(--anim-fast), box-shadow var(--anim-fast);
}

/* End Animations */

/* ====== SIDEBAR ====== */
nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: rgba(30, 32, 36, 0.97);
    display: flex;
    flex-direction: column;
    z-index: 3001;
    box-shadow: 2px 0 12px rgba(0,0,0,0.10);
    border-right: 1px solid #23272f;
    backdrop-filter: blur(6px);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
nav.open {
    transform: translateX(0);
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 70px 0 0 0;
    flex: 1;
}
nav li {
    margin: 0;
}
nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #e4e6eb;
    text-decoration: none;
    padding: 12px 10px;
    font-size: 1em;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
    border-radius: 6px 0 0 6px;
}
nav:hover a, nav:focus-within a {
    padding: 16px 32px;
    opacity: 1;
}
nav a:hover, nav a.active {
    background: rgba(76,175,80,0.07);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    opacity: 1;
}

/* ====== HEADER/BOX ====== */
.box {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 60px;
    background: rgba(30, 32, 36, 0.93);
    color: var(--accent);
    display: flex;
    align-items: center;
    padding: 0 24px 0 70px;
    z-index: 1100;
    border-bottom: 1px solid #23272f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    backdrop-filter: blur(8px);
    gap: 18px;
}
.box h1 {
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0;
    color: var(--accent);
    text-shadow: none;
}
#dp {
    margin-left: auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 1px 4px #0002;
    background: #23272f;
}

/* ====== MAIN CONTAINER ====== */
.container {
    margin-left: 0 !important;
    padding: 70px 16px 16px 16px;
    min-height: 100vh;
    background: transparent;
    transition: margin-left 0.3s cubic-bezier(0.4,0,0.2,1);
}
nav:hover ~ .container, nav:focus-within ~ .container {
    margin-left: 220px;
}

/* ====== DASHBOARD CARDS ====== */
.dashboard-cards {
    display: flex;
    gap: 28px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.dashboard-card {
    background: #23272f !important;
    color: #fff !important;
    border: 1.5px solid #292b32;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 18px 20px 14px 18px;
    min-width: 180px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    font-size: 0.98em;
}
.dashboard-card:hover {
    border: 1.5px solid var(--accent);
    box-shadow: 0 8px 32px var(--accent-light);
}
.dashboard-card .card-title {
    color: var(--accent) !important;
    text-shadow: 0 1px 4px #000a;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dashboard-card .card-value {
    color: #fff !important;
    text-shadow: 0 2px 8px #000a;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 4px;
}
.dashboard-card .card-meta {
    color: #bdbdbd !important;
    text-shadow: 0 1px 2px #0008;
    font-size: 0.93em;
}
.card-meta-up {
    color: var(--accent);
    font-weight: 600;
}
.card-meta-down {
    color: #ff5252;
    font-weight: 600;
}
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.dot.green { background: var(--accent); }
.dot.yellow { background: #ffd600; }
.dot.blue { background: #4b3fff; }
.send-notice {
    color: var(--accent-dark);
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.95em;
}

/* ====== CHARTS ====== */
.dashboard-charts {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin-bottom: 32px;
}
.chart-section, .dashboard-chart-card {
    background: #fff !important;
    color: #23272f !important;
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 22px 16px 12px 16px;
    flex: 1;
    min-width: 350px;
    box-sizing: border-box;
    overflow-x: auto;
}
.chart-section h3, .chart-title {
    color: #23272f !important;
    text-shadow: none;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ====== TABLES ====== */
.account-table, .activity-log-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: rgba(35, 39, 47, 0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.98em;
    color: #e4e6eb;
    border: 1.5px solid #23272f;
}
.account-table th, .account-table td, .activity-log-table th, .activity-log-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #292b32;
    vertical-align: middle;
    background: transparent;
}
.account-table th, .activity-log-table th {
    background: rgba(35, 39, 47, 0.98);
    color: #ffd600;
    font-size: 1em;
    font-weight: 600;
    border-bottom: 1.5px solid #292b32;
}
.account-table tr:last-child td, .activity-log-table tr:last-child td {
    border-bottom: none;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
    border: 2px solid #ffd600;
    background: #23272f;
}
.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.status-dot.active {
    background: var(--accent);
}
.status-dot.inactive {
    background: #ffeb3b;
}
.status-dot.suspended {
    background: #f44336;
}
.action-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% 60%;
    transition: background 0.2s, box-shadow 0.2s;
}
.action-icon.edit {
    background-color: var(--accent);
}
.action-icon.deactivate {
    background-color: #f44336;
}
.action-icon:hover {
    box-shadow: 0 2px 8px rgba(0,188,212,0.15);
    opacity: 0.85;
}

/* ====== MAP FULLSCREEN ====== */
#mapid, #map.container {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 0;
    background: #18191a;
}

/* ====== MODALS ====== */
#edit-user-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: rgba(24,25,26,0.85);
    align-items: center;
    justify-content: center;
}
#edit-user-modal .modal-content {
    background: rgba(35, 39, 47, 0.98);
    border-radius: 10px;
    box-shadow: 0 2px 12px #0002;
    padding: 22px 18px 16px 18px;
    min-width: 240px;
    max-width: 95vw;
    color: #e4e6eb;
    border: 1.5px solid var(--accent);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1em;
}
#edit-user-modal label {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 2px;
}
#edit-user-modal input, #edit-user-modal select {
    background: #23272f;
    color: #e4e6eb;
    border: 1.5px solid var(--accent);
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 1em;
    margin-bottom: 10px;
}
#edit-user-modal input:focus, #edit-user-modal select:focus {
    border: 1.5px solid var(--accent);
    outline: none;
}
#edit-user-modal .modal-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 1em;
    font-weight: 600;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#edit-user-modal .modal-btn.cancel {
    background: #23272f;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
#edit-user-modal .modal-btn:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* ====== LOGOUT MODAL ====== */
#logout-confirmation {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(35, 39, 47, 0.98);
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 24px #0008;
    z-index: 3000;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
#logout-confirmation button {
    background: var(--accent);
    color: #23272f;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 1em;
    font-weight: 600;
    margin: 8px 8px 0 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#logout-confirmation button:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
    .dashboard-cards, .dashboard-charts {
        flex-direction: column;
        gap: 18px;
    }
    .dashboard-card, .dashboard-chart-card {
        min-width: 0;
        width: 100%;
    }
}
@media (max-width: 900px) {
    nav, .box {
        width: 60px;
        transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
    }
    nav:hover, nav:focus-within {
        width: 180px;
    }
    .container {
        margin-left: 60px;
        padding: 60px 4vw 8px 4vw;
    }
    nav a, nav a.active, nav a:hover {
        padding: 16px 10px;
        font-size: 1em;
    }
    nav:hover a, nav:focus-within a {
        padding: 16px 20px;
    }
    .box h1 {
        font-size: 1em;
    }
    #dp {
        width: 32px;
        height: 32px;
    }
    nav ul {
        margin: 40px 0 0 0;
    }
}
@media (max-width: 700px) {
    nav, .box {
        position: static;
        width: 100vw;
        height: 56px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    .container {
        margin-left: 0;
        padding: 70px 4px 4px 4px;
    }
    .dashboard-cards, .dashboard-charts {
        flex-direction: column;
        gap: 12px;
    }
}

#searchbar{ 
    width: 300px;
    padding: 5px;                 
    font-size: 16px;
    border-radius: 5px;
    border: none;
    padding: 6px;
    font-size: 12px;
    background-image: url(https://tse2.mm.bing.net/th?id=OIP.iGWCX9X7dPCTs4YhIGA0qwHaIA&pid=Api&P=0&h=220);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 10px;
}

h1{
    display: flex;                
    align-items: center;          
    gap: 10px;  
}

#dp {
    margin-left: auto;           
    max-width: 100%;              
    height: 30px;
}

body{
    background-color: rgb(255, 78, 0);
}

.cover_area{
    background-color:transparent;
    min-height: 400px;
    width: 800px;
    margin: auto;
}

.cover_page{
    background-color:transparent;
    text-align: center;
    color: white;
}

#prof_pic{
    width: 150px;
    margin-top: 170px; 
    border-radius: 50%;
    border: solid 2px black;
}

#name{
    font-size: 30px;
}

.buttons{
    display: flex;             /* Enable flexbox */
    justify-content: center;   /* Center buttons horizontally */
    gap: 20px; 
    background-color: black;
}

.menu_buttons{
    width: 100px;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;        /* Rounded corners for buttons */
    cursor: pointer;
}

.menu_buttons:hover{
    background-color: rgba(255, 255, 255, 0.2); /* Light hover effect */
    transform: scale(1.02);
}

.left_container, .center_container{
    margin-top: 160px;
    padding: 20px;
}

.left_container {
    display: flex;
    flex-direction: column; 
    width: 250px;
    padding: 10px;
    background-color: rgb(255, 255, 255,0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: solid 1px white;
}

.job_type {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.job_type:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.job_type img {
    width: 40px;
    height: 40px; 
    object-fit: cover; 
}

.job_type span {
    font-size: 14px; 
    font-weight: bold;
}

.center_container{
    min-height: 400px;
    flex: 2.5;
    padding: 5px;
    padding-top: 0px;
}

textarea{
    width: 100%;
    border: none;
    font-family: tahoma;
    font-size: 14px;
    height: 100px;
    resize: none;
    margin-bottom: 10px;
}

#post_button{
    background: linear-gradient(to right, rgb(236, 159, 5), rgb(255, 78, 0));
    color: white;
    border:solid 1px white;
    padding: 4px;
    font-size: 14px;
    border-radius: 2px;
    width: 75px;
    margin-left: auto;
}

#post_button:hover{
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.post_box{
    background-color: rgb(255, 255, 255);
    border: solid thin #aaa;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#post_bar {
    background-color: rgb(255, 255, 255,0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border:solid 1px white;
    padding: 10px;
    display: flex;
    align-self: center;
}

#post_content{
    padding: 4px;
    font-size: 13px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#post_bar img{
    width: 40px;
    height: 40px; 
    object-fit: cover;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

#post_name{
    font-weight: bold;
    color: white;
    margin-right: 10px;
}

/* sign up page */

/* Center login card using flex on body */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #202124 0%, #23272f 100%);
}

/* Make signup-container look like dashboard-card */
.signup-container {
    background: #23272f !important;
    color: #fff !important;
    border: 1.5px solid #292b32;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2.5em 2em 2em 2em;
    min-width: 320px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.signup-container h2 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.5em;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
}
.form-group label {
    color: var(--accent);
    font-weight: 600;
}
.form-group input {
    background: #18191a;
    color: #fff;
    border: 1.5px solid var(--accent);
    border-radius: 6px;
    padding: 0.8em;
    font-size: 1em;
    margin-bottom: 0.2em;
    transition: border 0.2s;
}
.form-group input:focus {
    border: 1.5px solid var(--accent-dark);
    outline: none;
}
.signup-btn {
    width: 100%;
    padding: 0.8em;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5em;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(76,175,80,0.08);
}
.signup-btn:hover {
    background: var(--accent-dark);
    color: #fff;
}
/* Responsive for mobile */
@media (max-width: 500px) {
  .signup-container {
    min-width: 0;
    width: 98vw;
    padding: 1.2em 2vw;
  }
  .signup-container h2 {
    font-size: 1.3em;
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    
}

/* Background */
.signup-container {
    background-color: #fffaf0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

/* Container */
.signup-container {
    background: #fff;
    width: 400px;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Header */
.signup-container h2 {
    color: #ff6600;
    text-align: center;
    margin-bottom: 1.5em;
    font-size: 1.8em;
}

/* Form fields */
.form-group {
    margin-bottom: 1.2em;
}

.form-group label {
    display: block;
    margin-bottom: 0.4em;
    color: #ff6600;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ff6600;
    border-radius: 4px;
    font-size: 1em;
    color: #333;
}

/* Submit button */
.signup-btn {
    width: 100%;
    padding: 0.8em;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: 0.3s ease;
}

.signup-btn:hover {
    background-color: #4caf50;
}

/* Link text */
.login-link {
    text-align: center;
    margin-top: 1em;
    color: #666;
}

.login-link a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

.accept-btn {
    background-color: #4CAF50; /* Green color for accept */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 13px;
    transition: background-color 0.3s;
}

.accept-btn:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Workspace list styling */
#workspace {
    padding-top: 160px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Style each post within the workspace section */
#accepted-jobs-list li {
    list-style: none;
    margin-top: 10px;
}

/* Apply the same style as #post_bar */
#accepted-jobs-list .post {
    margin-top: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: solid 1px white;
    padding: 10px;
    display: flex;
    align-items: center;
}

/* Apply the same styling as #post_content */
#accepted-jobs-list #post_content {
    padding: 4px;
    font-size: 13px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Style the images within the accepted posts */
#accepted-jobs-list .post img {
    width: 40px;
    height: 40px; 
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

/* Style for the post author's name */
#accepted-jobs-list #post_name {
    font-weight: bold;
    color: white;
    margin-right: 10px;
}
.account-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: rgba(35, 39, 47, 0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.98em;
}
.account-table th, .account-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #292b32;
    vertical-align: middle;
    background: transparent;
}
.account-table th {
    background: rgba(35, 39, 47, 0.98);
    color: #ffd600;
    font-size: 1em;
    font-weight: 600;
    border-bottom: 1.5px solid #292b32;
}
.account-table tr:last-child td {
    border-bottom: none;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
    border: 2px solid #ffd600;
    background: #23272f;
}
.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.status-dot.active {
    background: var(--accent);
}
.status-dot.inactive {
    background: #ffeb3b;
}
.status-dot.suspended {
    background: #f44336;
}
.action-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% 60%;
    transition: background 0.2s, box-shadow 0.2s;
}
.action-icon.edit {
    background-color: var(--accent);
}
.action-icon.deactivate {
    background-color: #f44336;
}
.action-icon:hover {
    box-shadow: 0 2px 8px rgba(0,188,212,0.15);
    opacity: 0.85;
}

#profile {
    padding-top: 140px;
}

.activity-log-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: rgba(35, 39, 47, 0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.98em;
}
.activity-log-table th, .activity-log-table td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid #292b32;
    vertical-align: middle;
    background: transparent;
}
.activity-log-table th {
    background: rgba(35, 39, 47, 0.98);
    color: #ffd600;
    font-size: 1em;
    font-weight: 600;
    border-bottom: 1.5px solid #292b32;
}
.activity-log-table tr:last-child td {
    border-bottom: none;
}
.log-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}
.log-status.succeeded {
    background: #4caf50;
}

.dashboard-cards {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    justify-content: space-between;
}
.dashboard-card {
    background: #23272f !important;
    color: #fff !important;
    border: 1.5px solid #292b32;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 24px 32px 18px 24px;
    min-width: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    font-size: 0.98em;
}
.dashboard-card .card-title {
    color: var(--accent) !important;
    text-shadow: 0 1px 4px #000a;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dashboard-card .card-value {
    color: #fff !important;
    text-shadow: 0 2px 8px #000a;
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 6px;
}
.dashboard-card .card-meta {
    color: #bdbdbd !important;
    text-shadow: 0 1px 2px #0008;
    font-size: 0.95em;
}
.dashboard-card.fee-due .card-value {
    color: #ffb347;
}
.dashboard-card.exam-marks .card-value {
    color: #00bcd4;
}
.send-notice {
    color: var(--accent-dark);
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.95em;
}
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.dot.green { background: var(--accent); }
.dot.yellow { background: #ffb347; }
.dot.blue { background: #00bcd4; }

.dashboard-charts {
    display: flex;
    gap: 32px;
    justify-content: space-between;
}
.chart-section {
    background: #fff !important;
    color: #23272f !important;
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 18px 12px 8px 12px;
    flex: 1;
    min-width: 350px;
    box-sizing: border-box;
    overflow-x: auto;
}
.chart-section h3 {
    color: #23272f !important;
    text-shadow: none;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
}

#home {
    padding-top: 170px;
}
@media (max-width: 768px) {
    #home {
        padding-top: 100px;
    }
    .dashboard-cards {
        flex-direction: column;
        gap: 16px;
    }
    .dashboard-card {
        min-width: 0;
        padding: 16px 12px 12px 12px;
        font-size: 0.95em;
    }
    .dashboard-card .card-title {
        font-size: 1em;
    }
    .dashboard-card .card-value {
        font-size: 1.5em;
    }
    .dashboard-charts {
        flex-direction: column;
        gap: 0;
    }
    .chart-section {
        width: 100%;
        min-width: 0;
        margin-bottom: 24px;
    }
    .chart-section:last-child {
        margin-bottom: 0;
    }
    #barchart_div, #piechart {
        width: 100% !important;
        min-width: 0 !important;
        height: 220px !important;
    }
}

@media (max-width: 768px) {
    #home {
        padding-top: 200px;
    }
    .dashboard-card {
        padding: 10px 4px 8px 4px;
    }
    .dashboard-card .card-title {
        font-size: 0.95em;
    }
    .dashboard-card .card-value {
        font-size: 1.1em;
    }
    .chart-section h3 {
        font-size: 0.95em;
    }
}
#barchart_div, #piechart {
    background: #fff !important;
    color: #23272f !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    border: none;
    border-radius: 5px;
    padding: 6px 14px;
    margin-right: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.action-btn.edit {
    background: #e3f2fd;
    color: #1976d2;
}
.action-btn.deactivate {
    background: #ffebee;
    color: #c62828;
}
.action-btn.deactivate.active {
    background: #e8f5e9;
    color: #388e3c;
}
.action-btn:hover {
    background: #ececec;
    color: #111;
}
.action-btn.edit:hover {
    background: #bbdefb;
    color: #0d47a1;
}
.action-btn.deactivate:hover {
    background: #ffcdd2;
    color: #b71c1c;
}
.action-btn.deactivate.active:hover {
    background: #c8e6c9;
    color: #1b5e20;
}

#edit-user-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    /* Blur background */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: modal-fade-in 0.25s;
}
#edit-user-modal.active {
    display: flex;
}
@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
#edit-user-modal .modal-content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 32px 28px 24px 28px;
    min-width: 320px;
    max-width: 95vw;
    width: 100%;
    max-width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: modal-content-fade-in 0.3s;
    margin: 0;
}
@keyframes modal-content-fade-in {
    from { transform: translateY(30px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
#edit-user-modal h2 {
    margin-top: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    text-align: center;
}
#edit-user-modal label {
    font-size: 1em;
    color: #444;
    margin-bottom: 4px;
    font-weight: 500;
}
#edit-user-modal input, #edit-user-modal select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1em;
    margin-bottom: 10px;
    background: #fafbfc;
    transition: border 0.2s;
}
#edit-user-modal input:focus, #edit-user-modal select:focus {
    border: 1.5px solid var(--accent);
    outline: none;
}
#edit-user-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}
#edit-user-modal .modal-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#edit-user-modal .modal-btn.save {
    background: var(--accent);
    color: #fff;
}
#edit-user-modal .modal-btn.save:hover {
    background: var(--accent-dark);
}
#edit-user-modal .modal-btn.cancel {
    background: #f5f5f5;
    color: #333;
}
#edit-user-modal .modal-btn.cancel:hover {
    background: #e0e0e0;
}
@media (max-width: 500px) {
    #edit-user-modal .modal-content {
        padding: 18px 6vw 14px 6vw;
        min-width: 0;
        max-width: 98vw;
    }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: #fff;
}

#mapid {
    width: 100vw;
    height: 100vh;
    min-height: 400px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 0;
}

#map.container {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background: #18191a;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 0;
}

@media (max-width: 768px) {
    #map.container {
        top: 100px;
        height: calc(100vh - 100px);
        min-height: 250px;
    }
    #mapid {
        min-height: 250px;
    }
}

#logout-confirmation {
    z-index: 3000 !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Burger button style (dot + bar) */
#burger-btn {
    margin-right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(35,39,47,0.85);
    border: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s, box-shadow 0.2s;
}
#burger-btn .burger-line {
    width: 26px;
    height: 4px;
    background: #fff !important;
    border-radius: 2px;
    margin: 0;
    box-shadow: 0 1px 2px #0004;
    transition: background 0.2s;
}
#burger-btn:hover {
    background: rgba(41,43,50,0.95);
    box-shadow: 0 4px 16px #ffd60044;
}
#burger-btn:active .burger-line {
    background: #ffd600 !important;
}

/* Blur effect for modal */
body.blurred > *:not(#logout-confirmation) {
    filter: blur(6px) brightness(0.8);
    pointer-events: none;
    user-select: none;
}
#logout-confirmation {
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Remove unused overlay/burger styles */
#burger-overlay-btn, #sidebar-overlay { display: none !important; }

/* Hide nav on all screens unless open */
@media (min-width: 0px) {
    nav {
        transform: translateX(-100%);
    }
    nav.open {
        transform: translateX(0);
    }
}

#sidebar-back-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.1em;
    font-weight: 600;
    margin: 18px 0 8px 12px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s;
    letter-spacing: 0.5px;
}
#sidebar-back-btn:hover {
    background: rgba(76,175,80,0.08);
}

/* Theme accent color: green */
:root {
  --accent: #4caf50;
  --accent-light: #6fdc7a;
  --accent-dark: #388e3c;
}
#add-technician-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade-in 0.25s;
}
#add-technician-modal.active {
  display: flex;
}
#add-technician-modal .modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 32px 28px 24px 28px;
  min-width: 320px;
  max-width: 95vw;
  width: 100%;
  max-width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-content-fade-in 0.3s;
  margin: 0;
}
#add-technician-modal .modal-title {
  margin-top: 0;
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
  text-align: center;
}
#add-technician-modal label {
  font-size: 1em;
  color: #444;
  margin-bottom: 4px;
  font-weight: 500;
}
#add-technician-modal .modal-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 1em;
  margin-bottom: 10px;
  background: #fafbfc;
  transition: border 0.2s;
}
#add-technician-modal .modal-input:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}
#add-technician-modal .modal-btn {
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#add-technician-modal .modal-btn.save {
  background: var(--accent);
  color: #fff;
}
#add-technician-modal .modal-btn.save:hover {
  background: var(--accent-dark);
}
#add-technician-modal .modal-btn.cancel {
  background: #f5f5f5;
  color: #333;
}
#add-technician-modal .modal-btn.cancel:hover {
  background: #e0e0e0;
}
#add-technician-modal .modal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #222;
  cursor: pointer;
  font-weight: 700;
}
#add-technician-modal .modal-close-btn:hover {
  color: var(--accent);
}
@media (max-width: 500px) {
  #add-technician-modal .modal-content {
    padding: 18px 6vw 14px 6vw;
    min-width: 0;
    max-width: 98vw;
  }
}
#add-technician-modal {
  display: none;
  position: fixed;
  z-index: 3002;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.25);
  justify-content: center;
  align-items: center;
}
#add-technician-modal.active {
  display: flex;
}
#add-technician-modal .modal-content {
  background: #23272f;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  padding: 32px 28px 24px 28px;
  min-width: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.add-tech-btn {
  width: 38px;
  height: 38px;
  margin-bottom: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.5em;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(76,175,80,0.12);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.12s;
  cursor: pointer;
  padding: 0;
}
.add-tech-btn:hover, .add-tech-btn:focus {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(76,175,80,0.18);
  transform: scale(1.08);
}
.add-tech-icon {
  font-size: 1.3em;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landarea-panel {
  position: absolute;
  top: 80px;
  right: 32px;
  z-index: 1200;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  min-width: 220px;
  max-width: 320px;
  transition: box-shadow 0.18s, opacity 0.18s, width 0.18s;
  font-size: 1em;
  color: #23272f;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0.98;
}
.landarea-panel.collapsed .landarea-panel-content {
  display: none;
}
.landarea-panel-toggle {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 0 8px 8px;
  font-size: 1.2em;
  font-weight: bold;
  width: 100%;
  padding: 6px 0 4px 0;
  cursor: pointer;
  transition: background 0.18s;
  outline: none;
}
.landarea-panel-toggle:hover {
  background: var(--accent-dark);
}
.landarea-panel-header {
  font-weight: 600;
  font-size: 1.08em;
  padding: 12px 16px 6px 16px;
  color: var(--accent);
  background: #f7f7f7;
}
.landarea-list {
  list-style: none;
  margin: 0;
  padding: 0 0 10px 0;
  max-height: 220px;
  overflow-y: auto;
}
.landarea-list li {
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.13s;
  font-size: 1em;
}
.landarea-list li:last-child {
  border-bottom: none;
}
.landarea-list li:hover, .landarea-list li.active {
  background: #e8f5e9;
  color: var(--accent);
}
@media (max-width: 700px) {
  .landarea-panel {
    top: 60px;
    right: 4vw;
    min-width: 120px;
    max-width: 90vw;
    font-size: 0.98em;
  }
}

/* ADD BEARINGS Button - Bottom Right */
.add-bearing-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1200;
  width: 60px;
  height: 60px;
  background: #ffd600;
  color: #23272f;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 214, 0, 0.3);
  transition: all 0.18s cubic-bezier(.4,1.4,.6,1);
  font-size: 1.5em;
  font-weight: 900;
  outline: none;
}

.add-bearing-btn:hover {
  background: #e6c200;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(255, 214, 0, 0.4);
}

.add-bearing-btn:active {
  transform: scale(0.95);
}

.add-bearing-icon {
  font-size: 1.8em;
  font-weight: 900;
  line-height: 1;
  color: #23272f;
}

@media (max-width: 700px) {
  .add-bearing-btn {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 1.3em;
  }
  
  .add-bearing-icon {
    font-size: 1.6em;
  }
}

/* Bearing Marker Styles */
.bearing-marker {
  background: transparent !important;
  border: none !important;
}

.bearing-marker div {
  transition: transform 0.18s, box-shadow 0.18s;
}

.bearing-marker:hover div {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 214, 0, 0.4) !important;
}

/* Modern Bearings Modal Styles */
.bearings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.bearings-modal.active {
  display: flex;
}

.bearings-modal-content {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Header */
.bearings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 32px 24px 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
}

.header-content h3 {
  margin: 0 0 4px 0;
  color: #1a1a1a;
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-subtitle {
  margin: 0;
  color: #6c757d;
  font-size: 0.95em;
  font-weight: 400;
}

.close-modal-btn {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-btn:hover {
  background: #f8f9fa;
  color: #1a1a1a;
  transform: scale(1.05);
}

/* Body */
.bearings-modal-body {
  padding: 0 32px 24px 32px;
  overflow-y: auto;
  max-height: calc(85vh - 200px);
}

/* Sections */
.section {
  margin-bottom: 32px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.section-header h4 {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.section-indicator {
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #ffd600 0%, #ffed4e 100%);
  border-radius: 2px;
}

/* Coordinate Inputs */
.coordinates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.coordinate-input {
  display: flex;
  flex-direction: column;
}

.coordinate-input label {
  margin-bottom: 8px;
  color: #495057;
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.coordinate-input input {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1em;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  background: #ffffff;
  color: #1a1a1a;
  transition: all 0.2s ease;
  outline: none;
}

.coordinate-input input:focus {
  border-color: #ffd600;
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
  transform: translateY(-1px);
}

.coordinate-input input::placeholder {
  color: #adb5bd;
}

/* Points Table */
.points-table-wrapper {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #ffffff;
}

.points-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.points-table th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.points-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}

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

.points-table tr:hover {
  background: #f8f9fa;
}

.point-name {
  font-weight: 600;
  color: #1a1a1a;
}

.coordinate-display {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-weight: 500;
  color: #495057;
}

.distance-display {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-weight: 600;
  color: #28a745;
}

.bearing-display {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-weight: 500;
  color: #6c757d;
}

/* Add Point Button */
.add-point-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.add-point-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* Buttons */
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd600 0%, #ffed4e 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(255, 214, 0, 0.2);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 214, 0, 0.3);
}

.btn-primary:disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #e9ecef;
}

.btn-secondary:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

/* Summary */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.summary-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e9ecef;
}

.summary-label {
  display: block;
  color: #6c757d;
  font-size: 0.8em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.summary-value {
  display: block;
  color: #1a1a1a;
  font-size: 1.1em;
  font-weight: 700;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Footer */
.bearings-modal-footer {
  padding: 24px 32px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.footer-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Action Buttons */
.line-actions {
  display: flex;
  gap: 4px;
}

.line-action-btn {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9em;
}

.line-action-btn:hover {
  background: #e9ecef;
  color: #1a1a1a;
  transform: scale(1.1);
}

.line-action-btn.edit:hover {
  color: #ffd600;
}

.line-action-btn.delete:hover {
  color: #dc3545;
}

/* Custom Map Markers */
.custom-marker {
  background: none;
  border: none;
}

.custom-marker .marker-content {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
}

.start-marker .marker-content {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.point-marker .marker-content {
  background: linear-gradient(135deg, #ffd600 0%, #ffed4e 100%);
  color: #1a1a1a;
}

.marker-popup {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-width: 200px;
}

.marker-popup h4 {
  margin: 0 0 8px 0;
  color: #1a1a1a;
  font-size: 1.1em;
  font-weight: 600;
}

.marker-popup p {
  margin: 4px 0;
  color: #495057;
  font-size: 0.9em;
}

.marker-popup strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bearings-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .bearings-modal-header,
  .bearings-modal-body,
  .bearings-modal-footer {
    padding: 20px 24px;
  }
  
  .coordinates-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .footer-actions {
    flex-direction: column;
  }
  
  .points-table {
    font-size: 0.8em;
  }
  
  .points-table th,
  .points-table td {
    padding: 8px 6px;
  }
}

/* Traverse Calculator Styles */
.traverse-setup, .traverse-lines, .line-input-section, .traverse-summary {
  margin-bottom: 24px;
}

.traverse-setup h4, .traverse-lines h4, .line-input-section h4, .traverse-summary h4 {
  margin: 0 0 12px 0;
  color: #23272f;
  font-size: 1.1em;
  font-weight: 700;
  border-bottom: 2px solid #ffd600;
  padding-bottom: 4px;
}

.input-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.input-row .input-group {
  flex: 1;
  margin-bottom: 0;
}

.lines-table-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
}

.lines-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9em;
}

.lines-table th {
  background: #f8f9fa;
  color: #23272f;
  font-weight: 700;
  padding: 12px 8px;
  text-align: left;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.lines-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.lines-table tr:hover {
  background: #f8f9fa;
}

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

.line-name {
  font-weight: 600;
  color: #23272f;
  min-width: 80px;
}

.bearing-display {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #666;
  min-width: 100px;
}

.distance-display {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #28a745;
  text-align: right;
  min-width: 80px;
}

.coordinate-display {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #23272f;
  text-align: right;
  min-width: 100px;
}

.line-actions {
  display: flex;
  gap: 4px;
  min-width: 80px;
}

.line-action-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
  font-size: 0.9em;
}

.line-action-btn:hover {
  background: #f0f0f0;
  color: #23272f;
}

.line-action-btn.edit:hover {
  color: #ffd600;
}

.line-action-btn.delete:hover {
  color: #ff4444;
}

.add-line-btn {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-line-btn:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.line-input-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.add-to-table-btn {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.add-to-table-btn:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.add-to-table-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.stat-item {
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-weight: 600;
  color: #666;
  font-size: 0.95em;
}

.stat-value {
  font-weight: 700;
  color: #23272f;
  font-family: 'Courier New', monospace;
  font-size: 1em;
}

.calculate-all-btn {
  background: #ffd600;
  color: #23272f;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.calculate-all-btn:hover {
  background: #e6c200;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

@media (max-width: 768px) {
  .input-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .lines-table {
    font-size: 0.8em;
  }
  
  .lines-table th,
  .lines-table td {
    padding: 8px 4px;
  }
  
  .line-actions {
    flex-direction: column;
    gap: 2px;
  }
  
  .line-input-actions {
    flex-direction: column;
  }
  
  .summary-stats {
    grid-template-columns: 1fr;
  }
}




