/* Table of Contents ENSURE TO AMEND THIS AS YOU ADD COMPONENTS
=============================================
1. Base Styles                          lines 1-60
   - Imports & fonts
   - Body & container styling
   - Particles.js background
   - Main banner

2. Authentication Pages                 lines 62-
   - Login page & video background
   - Registration form
   - Password requirements

3. Dashboard Layout                     lines 232-
   - Navigation
   - Main content containers
   - Section headers & cards
   - Charts & data visualization

4. Fleet & Data Visualization           lines 402-
   - Chart containers
   - MAC selectors
   - Fleet lists
   - Sensor data tables

5. Vessel Detail Page                   lines 622-
   - Dashboard panels
   - Sensor details
   - Charts & gauges
   - Responsive adjustments

6. Fleet Management                     lines 952-
   - Fleet headers & layouts
   - Vessel tables
   - Status badges & actions
   - Modal styling

7. Vessel Management                    lines 1402-
   - Container layouts
   - Sensor cards
   - Assignment interfaces
   - Status indicators

8. Sensor Management                    lines 1802-
   - Detail containers
   - Forms & controls
   - Assignment tables

9. User Settings                        
   - Profile containers
   - Form layouts
   - Fleet & vessel settings

10. System Data Management              
    - Data containers
    - Sensor expanded cards
    - History tables
    - Data export tools

11. Admin Panel                         
    - Admin layout & containers
    - User management tables
    - Database sections
    - Message history

12. Registration Attempts               
    - Admin header & stats
    - Attempt cards & status
    - Table styling
    - Filtering controls

13. Contact & Support                   
    - Contact forms
    - Table containers
    - Flash messages
    - Button styles

14. Chat Window                         
    - Message containers
    - Input fields
    - Minimized states
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');


body {
    background-color: black;
    color: white;
    display: flex;
    font-family: 'Oswald', sans-serif;
    z-index: auto;
    margin: 0;
    min-height: 100vh; 
    overflow-x: hidden; 
}

/*particles dual css/js functional */
.particles {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1; 
}

.particles span {
    position: absolute;
    width: calc(var(--random-size, 5) * 1px);
    height: calc(var(--random-size, 5) * 1px);
    background-color: #75c7c7; /* Changed to match theme color */
    box-shadow: 0 0 8px 2px rgba(117, 199, 199, 0.6); /* Added glow effect */
    border-radius: 50%;
    opacity: var(--random-opacity, 0.6);
    animation: moveParticles 15s linear infinite;
    left: calc(var(--random-x) * 1%); 
    animation-delay: calc(var(--random-delay) * 1s); 
}

.particles span:nth-child(4n+1) {
    background-color: #ffffff;
    animation-duration: 18s;
}

.particles span:nth-child(4n+2) {
    background-color: #3a7bd5;
    animation-duration: 12s;
}

.particles span:nth-child(4n+3) {
    background-color: #75c7c7;
    animation-duration: 14s;
}

@keyframes moveParticles {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: var(--random-opacity, 0.6);
    }
    90% {
        opacity: var(--random-opacity, 0.6);
    }
    100% {
        transform: translateY(-10vh) scale(1.5);
        opacity: 0;
    }
}

.main-banner {
    font-family: 'Bebas Neue', cursive;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 50px;
    z-index: 3;
}


/* Footer Styling */

.main-footer {
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.95) 0%, rgba(30, 35, 45, 0.95) 100%);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid rgba(117, 199, 199, 0.15);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 999;
    height: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-left: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: #75c7c7;
    transform: translateY(-2px);
}

.footer-link i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-around;
    }
}
/*////////////////////////////// STYLES FOR THE LOGIN PAGE */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#myVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}

.login-form {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Makes it responsive */
}

.login-form h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.login-form label {
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.login-form button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-form button:hover {
    background: #0056b3;
}

.login-form .nav-logo {
    display: block;
    margin: 0 auto 20px;
    width: 150px; 
    height: auto;
}

/* Styles for the dashboard page */
.main-nav {
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.95) 0%, rgba(30, 35, 45, 0.85) 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.6rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(117, 199, 199, 0.15);
}

.nav-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.nav-item {
    margin-right: 0.5rem;
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #75c7c7, #3a7bd5);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
    border-radius: 2px;
}

.nav-link:hover {
    background: rgba(117, 199, 199, 0.15);
    color: #fff;
    border: 1px solid rgba(117, 199, 199, 0.2);
    box-shadow: 0 4px 15px rgba(117, 199, 199, 0.15);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
    opacity: 1;
}

.nav-link i {
    font-size: 25px !important;
    filter: drop-shadow(0 0 2px rgba(117, 199, 199, 0.3));
    transition: all 0.3s ease;
}

.nav-link:hover i {
    color: #75c7c7;
    transform: scale(1.1);
}

img.nav-logo {
    height: 70px;
    filter: drop-shadow(0 0 5px rgba(117, 199, 199, 0.5));
    transition: all 0.3s ease;
}

.nav-logo:hover {
    filter: drop-shadow(0 0 10px rgba(117, 199, 199, 0.8));
    transform: scale(1.05);
}

.nav-list li:last-child {
    margin-left: auto; 
    display: flex;
    align-items: center;
}

.main-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2375c7c7' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
    z-index: -1;
}

/* Media query for responsive design */
@media (max-width: 992px) {
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-logo {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 0.6rem;
        justify-content: center;
    }
    
    .nav-logo {
        height: 50px;
    }
    
    .nav-item {
        margin-right: 0.25rem;
    }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #050505;
    pointer-events: none;
}

/* Main content container */
.main-content {
    width: 99%;
    max-width: 2300px;
    margin: 100px auto 0;
    padding: 20px;
    position: relative;
    z-index: 2;
    overflow-y: visible !important;
    height: auto !important;
    margin-bottom: 20px;
}

/* Dashboard header */
.dash-header {
    width: 100%;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(117, 199, 199, 0.1);
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(23, 31, 54, 0.95));
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.dash-section-title {
    font-family: "Bebas Neue", sans-serif;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
}

/* Fixed Fleet and sensor containers layout */
.dash-fleet-activeSensors {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1200px) {
    .dash-fleet-activeSensors {
        grid-template-columns: 1fr;
    }
}

/* Content cards styling */
.dash-content-card {
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    width: 100%;
}

.dash-content-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.dash-card-header {
    background-color: rgba(15, 20, 35, 0.7);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(117, 199, 199, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.dash-card-title {
    color: #fff;
    font-size: 16px;
    margin: 0;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.5px;
}

.dash-card-title i {
    margin-right: 8px;
    opacity: 0.8;
}

/* =============================================
   Dashboard Chart Components - Common Styles
   ============================================= */
.dash-data-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .dash-data-visual {
        grid-template-columns: 1fr;
    }
}

/* Base chart container styling */
.dash-chart-container {
    background-color: #131722;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    padding: 10px;
    margin-bottom: 20px;
}

.dash-chart-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.dash-chart-canvas-container {
    width: 100%;
    height: calc(100% - 40px);
    position: relative;
}

/* Status bar for chart values */
.status-bar {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: auto;
    z-index: 10;
    background-color: rgba(19, 23, 34, 0.7);
    border-radius: 4px;
    padding: 5px 10px;
}

.data-label {
    font-size: 12px;
    color: #787f94;
}

.value-display {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.value-unit {
    font-size: 14px;
    color: #787f94;
    margin-left: 3px;
}

/* =============================================
   Chart Components - Tension Chart
   ============================================= */
.dash-chart-container:has(#tensionChartContainer) {
    height: 500px;
    overflow: visible;
}

#tensionChartContainer {
    width: 100%;
    height: calc(100% - 40px);
}

/* =============================================
   Chart Components - Bar Chart (Peak Loads)
   ============================================= */
.dash-chart-container:has(#barChart) {
    height: 250px;
    position: relative; 
    padding: 0 !important; 
    overflow: visible;
    margin-bottom: 15px;
}


#barChart {
    position: absolute; /* Position absolutely */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 95%;
    width: 100%;
}

#plotlyBarChart {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

#barChart .js-plotly-plot,
#barChart .plot-container,
#barChart .main-svg {
    width: 100% !important;
    height: 100% !important;
}

#barChart .plotly .main-svg .subplot {
    margin-bottom: 0 !important;
}

/* =============================================
   Chart Components - Pitch/Elevation Chart
   ============================================= */
.dash-chart-container:nth-child(2) .dash-chart-canvas-container {
    height: 100%;
    position: relative;
    padding-bottom: 5px;  
    overflow: visible;     
}

#pitchBarChart {
    width: 100% !important;
    height: 94% !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* Make sure the plotly container takes full space */
#pitchBarChart .js-plotly-plot,
#pitchBarChart .plot-container,
#pitchBarChart .main-svg {
    width: 100% !important;
    height: 100% !important;
}

/* Fix margin issues in the plotly visualization */
#pitchBarChart .plotly .main-svg .subplot {
    margin-bottom: 0 !important;
}

/* =============================================
Chart Components - Wide Chart
============================================= */
.dash-wide-chart {
    background-color: #131722;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    margin: 20px auto;
    height: 300px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.dash-wide-chart .dash-chart-canvas-container {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 40px);
}

#wideChartContainer {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

#wideChartContainer .js-plotly-plot,
#wideChartContainer .plot-container,
#wideChartContainer .main-svg {
    width: 100% !important;
    height: 100% !important;
}
/* =============================================
   Chart Components - MAC Selector
   ============================================= */
.dash-mac-selector {
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(117, 199, 199, 0.1);
}

.dash-mac-selector select {
    background-color: rgba(15, 20, 35, 0.7);
    border: 1px solid rgba(117, 199, 199, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    outline: none;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dash-mac-selector select:hover, 
.dash-mac-selector select:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
}

.dash-drillback-button {
    background-color: rgba(0, 123, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =============================================
   Fleet and Vessel Styles
   ============================================= */
/* Fleet list styling */
.dash-fleet-list-container {
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.dash-fleet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash-fleet-item {
    margin-bottom: 5px;
}

.dash-fleet-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dash-fleet-toggle:hover {
    background-color: rgba(0, 123, 255, 0.3);
    color: #fff;
}

.dash-fleet-name {
    font-weight: 500;
}

.dash-vessels-list {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 5px 0 10px;
}

.dash-vessel-item {
    padding: 5px 0;
}

.dash-vessel-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dash-vessel-item a:hover {
    color: #fff;
    background-color: rgba(0, 123, 255, 0.2);
}

/* Styles for active vessel selection */
.dash-vessel-item a.active-vessel {
    background-color: rgba(0, 123, 255, 0.15);
    border-left: 3px solid #007bff;
    font-weight: bold;
    padding-left: 7px;
}

.dash-vessel-item i {
    margin-right: 6px;
    font-size: 12px;
}

/* =============================================
   Sensor Data Table
   ============================================= */
.dash-table-responsive {
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.dash-sensor-data-table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.dash-sensor-data-table thead {
    background-color: rgba(0, 0, 0, 0.9);
    position: sticky;
    top: 0;
    z-index: 20;
}

.dash-sensor-data-table th {
    padding: 10px;
    text-align: left;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.9); 
}

.dash-sensor-data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.dash-sensor-data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Style for hidden sensor rows */
tr.sensor-hidden {
    display: none;
}

/* Prevent missing rows in tables due to overflow issues */
.dash-sensor-data-table tbody {
    display: table-row-group;
}

/* =============================================
   UI Elements & Scrollbars
   ============================================= */
/* Fleet header styling */
.dash-fleet-header {
    padding: 10px 15px;
    background-color: rgba(42, 46, 57, 0.5);
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dash-fleet-header:hover {
    background-color: rgba(42, 46, 57, 0.8);
}

/* Show all sensors button */
.dash-show-all-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px 0;
    background-color: transparent;
    border: 1px solid #3580bf;
    color: #3580bf;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.dash-show-all-btn:hover {
    background-color: rgba(53, 128, 191, 0.1);
}

.dash-highlight {
    color: #0dcaf0;
    font-weight: 500;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.7);
}

.dash-fleet-list-container::-webkit-scrollbar,
.dash-table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dash-fleet-list-container::-webkit-scrollbar-track,
.dash-table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.dash-fleet-list-container::-webkit-scrollbar-thumb,
.dash-table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dash-fleet-list-container::-webkit-scrollbar-thumb:hover,
.dash-table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dash-fleet-activeSensors > div,
.dash-data-visual > div,
.dash-chart-container,
.dash-wide-chart {
    max-width: 100%;
    box-sizing: border-box;
}


/* // gauge logic here */

.dash-data-visual > div:nth-child(3) {
    grid-column: 2; 
    grid-row: 2; 
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.dash-gauge {
    margin-top: -230px; 
    margin-bottom: -150px; 
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    padding: 8px 8px 0 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(33.333% - 20px);
    min-width: 100px;
    height: 180px; 
    overflow: hidden; 
}

.dash-gauge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.dash-gauge-container {
    width: 100%;
    height: 120px; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0; 
}

.gauge-label {
    margin-top: 0;
    margin-bottom: 4px; 
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Adjust the responsive layout for gauges */
@media (max-width: 1200px) {
    .dash-data-visual > div:nth-child(3) {
        grid-column: 1; 
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dash-gauge {
        width: 100%; /* Stack gauges on very small screens */
        margin-bottom: 15px;
    }
}

/*//////////////////////////////////////////////////////////////////////// */
/*////////////// MOORING DASHBOARD STYLES /////////////////////////////// */
.mooring-main-content {
    width: 99%;
    max-width: 2300px;
    margin: 100px auto 0;
    padding: 20px;
    position: relative;
    z-index: 2;
    overflow-y: visible !important;
    height: auto !important;
    margin-bottom: 120px;
    padding-bottom: 120px;
}

.mooring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(145deg, rgba(23, 32, 46, 0.95), rgba(32, 44, 62, 0.95));
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #3b82f6;
    position: relative;
    overflow: hidden;
}

.mooring-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.1));
    z-index: 1;
    pointer-events: none;
}

.mooring-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mooring-title i {
    font-size: 28px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.mooring-title-text {
    display: flex;
    flex-direction: column;
}

.mooring-title h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #f8fafc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mooring-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 5px;
}

.mooring-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mooring-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.2);
    color: #f8fafc;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mooring-back-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mooring-vessel-info-card {
    background-color: #131722;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    width: 100%;
    border-left: 3px solid #00cfff;
    position: relative;
}

.mooring-vessel-info-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.mooring-vessel-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(0, 207, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.mooring-vessel-info-header {
    background: rgba(15, 20, 35, 0.7);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 207, 255, 0.2);
    position: relative;
}

.mooring-vessel-info-title {
    color: #fff;
    font-size: 16px;
    margin: 0;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.mooring-vessel-info-title i {
    margin-right: 10px;
    color: #00cfff;
    text-shadow: 0 0 5px rgba(0, 207, 255, 0.5);
}

.mooring-vessel-details {
    padding: 15px;
    position: relative;
}

.mooring-vessel-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 15px 0;
    border-bottom: 1px solid rgba(0, 207, 255, 0.15);
    padding-bottom: 8px;
}

.mooring-vessel-data-row {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mooring-vessel-data-row:hover {
    background: rgba(0, 207, 255, 0.1);
}

.mooring-vessel-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    width: 80px;
    flex-shrink: 0;
}

.mooring-vessel-value {
    color: #fff;
    font-family: 'Oswald', sans-serif;
}

.mooring-vessel-value.sensor-count {
    color: #1fd523;
    font-weight: 500;
    font-family: 'Oswald', sans-serif;
}

.mooring-vessel-alert {
    margin-top: 15px;
    padding: 10px 12px;
    background: rgba(255, 172, 35, 0.15);
    border: 1px solid rgba(255, 172, 35, 0.3);
    border-radius: 4px;
    color: #ffac23;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.mooring-vessel-alert i {
    margin-right: 8px;
    font-size: 16px;
}

/* Mooring Gauges Layout //////////////////////*/
.mooring-dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.mooring-dash-gauge {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 190px; 
    transition: all 0.3s ease;
}

.mooring-gauges {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: auto;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}


.mooring-dash-gauge {
    width: 162px; 
    height: auto; 
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0; 
    justify-self: center; 
}

.mooring-gauge-container {
    width: 100%;
    height: 150px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.mooring-dash-gauge canvas {
    width: 100%;
    height: 100%;
}

.gauge-label {
    font-size: 12px;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    color: white;
    height: 30px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Chart container */
.sensor-selector {
    float: right;
    background-color: rgba(0, 0, 0, 0.6);
    color: #75c7c7;
    border: 1px solid rgba(117, 199, 199, 0.3);
    padding: 4px 8px !important; 
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    cursor: pointer;
    outline: none;
}

.sensor-selector:hover {
    border-color: rgba(117, 199, 199, 0.6);
}

.sensor-selector option {
    background-color: #131722;
    color: #fff;
}

.mooring-dash-charts {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px !important;
}

.mooring-dash-chart {
    height: 300px !important; /* ADJUST GRAPH HEIGHTS HERE */
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 10px 15px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px !important;
    box-sizing: border-box !important;
    max-height: 300px !important; /* ADJUST GRAPH HEIGHTS HERE!!!! */
}

.mooring-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 20, 35, 0.7);
    padding: 8px 15px !important;
    border-bottom: 1px solid rgba(117, 199, 199, 0.1);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Split chart container styles */
.mooring-dash-chart-container {
    display: flex;
    gap: 10px;
    width: 100%;
    height: 400px;
}

.mooring-dash-chart-half {
    flex: 1;
    background: #131722;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #2a2e39;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Video background */
.mooring-water-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.85;

    /* animated look */
    filter: url(#waterWarp) hue-rotate(0deg) saturate(1.35) contrast(1.12) brightness(0.82);
    animation: hueCycle 18s linear infinite, floatShift 30s ease-in-out infinite;
    transform: scale(1.03);
    border-radius: 8px;
}

.mooring-water-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 20, 41, 0.75);
    z-index: 2; 
    border-radius: 8px;
    pointer-events: none;
    overflow: hidden;
}

/* gradient sweep */
.mooring-water-overlay::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(120% 60% at 20% 40%, rgba(0, 255, 255, 0.12) 0%, rgba(0,0,0,0) 60%),
        linear-gradient(115deg, rgba(0,0,0,0) 40%, rgba(0, 255, 255, 0.10) 50%, rgba(0,0,0,0) 60%),
        radial-gradient(80% 40% at 80% 70%, rgba(58, 123, 213, 0.10) 0%, rgba(0,0,0,0) 60%);
    mix-blend-mode: overlay;
    animation: shimmerSlide 12s linear infinite;
}

/* scanlines */
.mooring-water-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.02) 0px,
            rgba(255,255,255,0.02) 1px,
            rgba(0,0,0,0) 2px
        );
    opacity: 0.25;
    mix-blend-mode: soft-light;
    animation: scanScroll 10s linear infinite;
}

@keyframes shimmerSlide {
    0%   { transform: translateX(-10%) translateY(-2%) rotate(0.0001deg); }
    50%  { transform: translateX(10%)  translateY(2%) rotate(0.0001deg); }
    100% { transform: translateX(-10%) translateY(-2%) rotate(0.0001deg); }
}

@keyframes hueCycle {
    0%   { filter: url(#waterWarp) hue-rotate(0deg)   saturate(1.35) contrast(1.12) brightness(0.82); }
    50%  { filter: url(#waterWarp) hue-rotate(22deg)  saturate(1.55) contrast(1.14) brightness(0.80); }
    100% { filter: url(#waterWarp) hue-rotate(0deg)   saturate(1.35) contrast(1.12) brightness(0.82); }
}

@keyframes scanScroll {
    0%   { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

@keyframes floatShift {
    0%   { transform: scale(1.03) translateY(0px); }
    50%  { transform: scale(1.035) translateY(-3px); }
    100% { transform: scale(1.03) translateY(0px); }
}

@media (prefers-reduced-motion: reduce) {
    .mooring-water-video {
        animation: none;
        filter: brightness(0.82) contrast(1.08) saturate(1.1); /* static fallback */
    }
    .mooring-water-overlay::before,
    .mooring-water-overlay::after {
        animation: none;
    }
}

#mooringVisualizationCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent !important;
    border-radius: 4px;
}

.mooring-dash-chart-half canvas {
    width: 100%;
    height: 100%;
    background: #131722;
    border-radius: 4px;
}

.mooring-dash-chart-half #mooringYawChart {
    width: 100%;
    height: 100%;
}

#mooringForeTensionChart, 
#mooringAftTensionChart {
    width: 100% !important;
    height: 100% !important;
}

.mooring-chart-title {
    color: #fff;
    font-size: 16px;
    margin: 0;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.5px;
}

.mooring-chart-title i {
    margin-right: 8px;
    opacity: 0.8;
    color: #75c7c7;
}

.mooring-dash-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

#mooringTensionChartContainer {
    width: 100% !important;
    height: 100% !important;
    flex: 1;
}

#mooringTensionChart,
#mooringTensionChart .js-plotly-plot,
#mooringTensionChart .plot-container,
#mooringTensionChart .main-svg {
    width: 100% !important;
    height: 100% !important;
    max-height: 300px !important;
    box-sizing: border-box !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mooring-dash-chart-container {
        flex-direction: column;
        height: auto;
    }
    
    .mooring-dash-chart-half {
        height: 300px;
    }
}

@media (max-width: 1600px) {
    .mooring-dashboard-container {
        flex-direction: column !important; 
    }

    .mooring-gauges {
        width: 100% !important; 
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; 
    }

    .mooring-dash-chart {
        width: 100% !important; 
        max-width: 100% !important; 
        height: 300px !important; 
        max-height: 300px !important; 
    }
    
    #mooringTensionChartContainer {
        height: 300px !important; 
    }
    
    #mooringTensionChartContainer .js-plotly-plot,
    #mooringTensionChartContainer .plot-container,
    #mooringTensionChartContainer .main-svg {
        height: 300px !important; 
    }
}

/*//////////////////////////////////////////////////////////////////////// */
/* STYLES FOR THE VESSEL_DETAIL PAGE (WHEN VESSEL SELECTED FROM DASHBOARD) */

.vessel-dash-main-content {
    margin-top: 130px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
}

.dashboard-panel {
    background-color: #2a2e33;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-panel h2 {
    font-size: 20px;
    font-weight: 500;
    color: #e9ecef;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vessel-div-1 {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    height: 400px;
    width: 100%;
}

/* Active sensors panel */
.vessel-active-sensor-details {
    height: 100%;
    grid-column: 1;
}

.vessel-active-sensor-details ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.vessel-active-sensor-details li {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #f8f9fa;
    display: flex;
    align-items: center;
}

.vessel-active-sensor-details li:before {
    content: "•";
    color: #17a2b8;
    font-size: 24px;
    margin-right: 12px;
}

.vessel-tension-charts-dashboard-panel {
    background-color: #131722;
}

.vessel-tension-charts {
    grid-column: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vessel-tension-charts canvas {
    flex: 1;
    min-height: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Second row layout - table and gauges */
.vessel-div-2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    height: 300pxpx;
    width: 100%;
}

.vessel-sensor-data {
    grid-column: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vessel-table-wrapper {
    flex: 1;
    overflow-y: auto;
    border-radius: 5px;
    margin-top: 10px;
}

.vessel-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #e9ecef;
}

.vessel-data-table th,
.vessel-data-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.vessel-data-table th {
    background-color: #212529;
    position: sticky;
    top: 0;
    z-index: 10;
    color: #f8f9fa;
    font-weight: 500;
}

.vessel-data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Gauges grid layout */
.vessel-gauges {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    height: 100%;
}

/* Individual gauge styling */
#vesselGauge1, 
#vesselGauge2, 
#vesselGauge3 {
    display: flex;
    flex-direction: column;
    height: 100%;
    aspect-ratio: auto;
    padding: 10px;
}

/* Gauge container to maintain aspect ratio */
.gauge-container {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Canvas styling for gauges */
.gauge-container canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    display: block;
}

/* Style for gauge labels */
.gauge-label {
    text-align: center;
    padding-top: 12px;
    font-size: 14px;
    color: #e9ecef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto;
}

/* --- Responsive Design --- */
@media (max-width: 1400px) {
    .vessel-div-1 {
        grid-template-columns: 250px 1fr;
        height: 350px;
    }
    
    .vessel-div-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1100px) {
    .vessel-div-1,
    .vessel-div-2 {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .vessel-div-1 > div,
    .vessel-div-2 > div {
        min-height: 350px;
    }
    
    .vessel-gauges {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vessel-dash-main-content {
        padding: 16px;
        margin-top: 70px;
        gap: 16px;
    }
    
    .vessel-gauges {
        grid-template-columns: 1fr;
    }
    
    #vesselGauge1,
    #vesselGauge2,
    #vesselGauge3 {
        height: 250px;
    }
    
    .dashboard-panel {
        padding: 15px;
    }
}
/*/// divs that hold the gauges */

.vessel-gauges {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

#vesselGauge1,
#vesselGauge2,
#vesselGauge3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #343a40;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    height: 300px;
}

.gauge-label {
    color: #ffffff;
    font-size: 1.2rem;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
    background-color: #343a40;
    padding: 5px;
    width: 100%;
    border-radius: 5px;
}

.gauge-label:hover {
    color: #00ffff;
    background-color: #424a52;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transform: translate(-2px);
}

.gauge-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width:  250px ;
}

.gauge-container canvas {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
    aspect-ratio: 1;
}

/*////////////////////////////////  STYLES FOR THE ASSIGNMENTS PAGE */

.assignments-main-content {
    padding: 25px;
    margin-left: 0;
    margin-top: 100px;
    width: 100%;
    color: #fff;
}

.assignments-page-welcome {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(23, 31, 54, 0.95));
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    border-left: 4px solid #75c7c7;
}

.assignments-page-welcome h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
}

.assignments-page-welcome h2 {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* Registration form styles */

.assignments-registration-section {
    margin-top: 120px;
    width: 600px;
    max-width: 100%; 
    background-color: rgba(19, 23, 34, 0.5);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #21c179;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.assignments-registration-section h2 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.assignments-form-container {
    width: 100%;
}

/* Updated to vertical layout */
.assignments-split-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.assignments-form-column {
    background-color: rgba(19, 23, 34, 0.7);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.assignments-form-column h3 {
    font-size: 16px;
    color: #75c7c7;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.assignments-form-group {
    margin-bottom: 15px;
}

.assignments-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 14px;
}

.assignments-form-group input,
.assignments-form-control {
    width: 100%;
    padding: 10px;
    background-color: rgba(15, 20, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    margin-bottom: 10px;
}

.assignments-form-group input:focus,
.assignments-form-control:focus {
    border-color: #21c179;
    outline: none;
    box-shadow: 0 0 0 1px rgba(33, 193, 121, 0.3);
}

.assignments-password-requirements {
    background-color: rgba(15, 20, 30, 0.5);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.assignments-requirements-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.assignments-requirements-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #dc3545;
    font-size: 13px;
}

.assignments-requirements-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #dc3545;
}

.assignments-requirements-list li.valid {
    color: #21c179;
}

.assignments-requirements-list li.valid::before {
    content: "✓";
    color: #21c179;
}

.assignments-admin-section {
    background-color: rgba(19, 23, 34, 0.7);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.assignments-admin-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.assignments-admin-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.assignments-admin-code-input {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(15, 20, 30, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Match button style with fleet form */
.assignments-btn-primary {
    background-color: #21c179;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 15px;
    width: 100%;
}

.assignments-btn-primary:hover {
    background-color: #1aa86a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.assignments-btn-secondary {
    background-color: rgba(77, 132, 255, 0.2);
    color: white;
    border: 1px solid rgba(77, 132, 255, 0.3);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.assignments-btn-secondary:hover {
    background-color: rgba(77, 132, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.assignments-client-only-btn {
    width: 100%;
}

.assignments-alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 3px solid #dc3545;
}

/* Media queries */
@media (max-width: 768px) {
    .assignments-registration-section {
        max-width: 100%;
    }
}

/* Two-column layout for form and map */
.assignments-layout {
    display: grid;
    grid-template-columns: minmax(350px, 40%) 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.fleet-assignments-section {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(117, 199, 199, 0.1);
}

.fleet-assignments-section h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
}

.fleet-assignments-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 15px;
    color: #75c7c7;
}
/* Form styling */
.fleet-form {
    background: rgba(15, 20, 35, 0.5);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(117, 199, 199, 0.1);
}

.fleet-form .form-group {
    margin-bottom: 15px;
}

.fleet-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #fff;
}

.fleet-form .form-control {
    width: 100%;
    padding: 10px;
    background: rgba(15, 20, 35, 0.7);
    border: 1px solid rgba(117, 199, 199, 0.2);
    border-radius: 4px;
    color: #fff;
}


.fleet-form .form-control:focus {
    outline: none;
    border-color: #75c7c7;
    box-shadow: 0 0 0 2px rgba(117, 199, 199, 0.25);
}

/* Button styling */
.fleet-form .btn-primary {
    background: linear-gradient(90deg, #75c7c7, #3a7bd5);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.fleet-form .btn-primary:hover {
    background: linear-gradient(90deg, #85d7d7, #4a8be5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.coordinate-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

/* Button styling */
#pick-location-btn.btn-secondary,
button.btn-secondary {
    background: rgba(77, 132, 255, 0.2) !important;
    color: white;
    border: 1px solid rgba(77, 132, 255, 0.3);
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 42px;
}

#pick-location-btn.btn-secondary:hover,
button.btn-secondary:hover {
    background: rgba(77, 132, 255, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#pick-location-btn.btn-secondary.active {
    background: rgba(255, 77, 77, 0.4) !important;
    border-color: rgba(255, 77, 77, 0.5);
}

.client-fleet-group {
    margin-bottom: 30px;
    background-color: rgba(19, 23, 34, 0.5);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #21c179;
}

.client-heading {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.fleet-list {
    list-style-type: none;
    padding-left: 15px;
}

.fleet-details {
    display: block;
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 3px;
}

.client-label {
    color: #21c179;
    margin-right: 10px;
}

.location-label {
    color: #e1e1e1;
}

/* Map container styling */
#assignments-map {
    height: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

#assignments-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(52, 58, 64, 0.7) 0%, rgba(52, 58, 64, 0) 100%);
    z-index: 1000;
    pointer-events: none;
    border-radius: 8px 8px 0 0;
}

/* Existing fleets section styling */
.existing-fleets-section {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    margin-bottom: 30px;
    border: 1px solid rgba(117, 199, 199, 0.1);
}

.existing-fleets-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #75c7c7;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.existing-fleets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.existing-fleets ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: contents;
}

.existing-fleets li {
    margin: 0;
}

.existing-fleets li a {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: rgba(15, 20, 35, 0.5);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    height: 100%;
}

.existing-fleets li a:hover {
    background: rgba(77, 132, 255, 0.2);
    border-left-color: #75c7c7;
    padding-left: 20px;
}

.existing-fleets li a i {
    margin-right: 8px;
    font-size: 16px;
}

.existing-fleets li a small {
    margin-top: 5px;
    color: #aaa;
    font-size: 0.8em;
    margin-left: 24px;
}

/* Map popup styling */
.leaflet-popup-content-wrapper {
    background: rgba(30, 30, 40, 0.95);
    color: white;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-content {
    margin: 12px;
}

.leaflet-popup-tip {
    background: rgba(52, 58, 64, 0.9);
}

.fleet-popup {
    text-align: center;
    padding: 5px;
}

.map-link {
    display: inline-block;
    background: #0052cc;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 12px;
    transition: background 0.2s ease;
}

.map-link:hover {
    background: #003d99;
}

/* Marker styling */
.marker-pulse {
    width: 20px;
    height: 20px;
    background-color: #F44336;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(0.8); opacity: 1; }
}

/* Responsive design */
@media (max-width: 992px) {
    .assignments-layout {
        grid-template-columns: 1fr;
    }
    
    #assignments-map {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .assignments-main-content {
        padding: 15px;
    }
    
    .assignments-page-welcome {
        padding: 15px;
    }
    
    .fleet-assignments-section {
        padding: 15px;
    }
    
    #assignments-map {
        height: 350px;
    }
    
    .existing-fleets {
        grid-template-columns: 1fr;
    }
}
/*/// STYLES FOR THE FLEET MANAGEMENT PAGE */

.fleet-main-content {
    padding: 25px;
    margin-left: 0;
    margin-top: 100px;
    width: 100%;
    color: #fff;
}

.fleet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: rgba(52, 58, 64, 0.7);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-left: 4px solid #0052cc;
}

.fleet-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
    color: #fff;
}

.fleet-header h2 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.9;
}

.fleet-meta {
    display: flex;
    gap: 20px;
    opacity: 0.7;
    margin-top: 10px;
}

.fleet-meta span {
    display: flex;
    align-items: center;
}

.fleet-meta i {
    margin-right: 8px;
}

.fleet-actions {
    display: flex;
    gap: 10px;
}

/* Two-column layout for fleet info and vessels */
.fleet-layout {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 25px;
}

.fleet-info-section, .fleet-vessels-section {
    background: rgba(52, 58, 64, 0.7);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* Fleet map */
.fleet-map-container {
    height: 400px;
    margin-bottom: 20px;
}

#fleet-map {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #75c7c7;
}

/* Button styling */
.btn-primary {
    background: #0052cc;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary i {
    margin-right: 6px;
}

.btn-primary:hover {
    background: #003d99;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary i {
    margin-right: 6px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-danger i {
    margin-right: 6px;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Forms styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #fff;
}

.form-control {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #0052cc;
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.25);
}

.coordinate-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

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

.fleet-edit-form-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.fleet-edit-form-container h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #75c7c7;
}

.add-form {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Vessels table */
.vessels-table-container {
    overflow-x: auto;
}

.vessels-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.vessels-table th,
.vessels-table td {
    padding: 12px 15px;
    text-align: left;
}

.vessels-table th {
    background: rgba(0, 0, 0, 0.3);
    color: #75c7c7;
    font-weight: 500;
    position: sticky;
    top: 0;
}

.vessels-table th:first-child {
    border-top-left-radius: 8px;
}

.vessels-table th:last-child {
    border-top-right-radius: 8px;
}

.vessels-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.1);
}

.vessels-table tr:hover {
    background: rgba(0, 82, 204, 0.1);
}

.vessel-name {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.vessel-name i {
    margin-right: 8px;
    color: #75c7c7;
}

.vessel-name:hover {
    color: #0052cc;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status-badge.inactive {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.status-badge.maintenance {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-badge.alert {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.actions-cell {
    white-space: nowrap;
    text-align: right;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.action-btn.edit {
    background: rgba(0, 82, 204, 0.2);
    color: #0052cc;
    text-decoration: none;
}

.action-btn.delete {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.action-btn.edit:hover {
    background: rgba(0, 82, 204, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.action-btn.delete:hover {
    background: rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Empty state */
.no-vessels {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.no-vessels p {
    margin-bottom: 10px;
    color: #aaa;
}

.no-vessels p:first-child {
    font-size: 18px;
    color: #fff;
}

.no-vessels i {
    margin-right: 8px;
    color: #75c7c7;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(52, 58, 64, 0.9);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #75c7c7;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-modal:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body .warning {
    color: #dc3545;
    display: flex;
    align-items: center;
}

.modal-body .warning i {
    margin-right: 8px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive design */
@media (max-width: 992px) {
    .fleet-layout {
        grid-template-columns: 1fr;
    }
    
    .fleet-info-section {
        order: 2;
    }
    
    .fleet-vessels-section {
        order: 1;
    }
    
    .fleet-header {
        flex-direction: column;
    }
    
    .fleet-actions {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .fleet-main-content {
        padding: 15px;
    }
    
    .fleet-header,
    .fleet-info-section,
    .fleet-vessels-section {
        padding: 15px;
    }
    
    .vessels-table th,
    .vessels-table td {
        padding: 8px;
    }
    
    .coordinate-fields {
        grid-template-columns: 1fr;
    }
}

/* Registration Attempts Page Styles */
.admin-reg-container {
    padding: 25px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    width: 97%; 
    max-width: 2200px; 
    color: white;
}

.admin-reg-header {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(23, 31, 54, 0.95));
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-left: 4px solid #007bff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 28px;
    margin-right: 20px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.stat-card.total .stat-icon {
    color: #64B5F6;
}

.stat-card.success .stat-icon {
    color: #4CAF50;
}

.stat-card.warning .stat-icon {
    color: #FFC107;
}

.attempts-table-wrapper {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.table-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-actions {
    display: flex;
    gap: 15px;
}

.table-actions input, .table-actions select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
}

.attempts-table-container {
    padding: 0 20px 20px;
    overflow-x: auto;
}

.attempts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.attempts-table th {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.attempts-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-badge.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

tr.success:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

tr.warning:hover {
    background-color: rgba(255, 193, 7, 0.05);
}

/* STYLES FOR THE VESSEL_MANAGEMENT PAGE */
.vessel-management-main-content {
    margin-top: 100px;
    width: 100%;
    padding: 20px;
    display: flex;
    gap: 40px;
    max-width: 100%;
}

/* Vessel Management Specific Styles */
.vessel-mgmt-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.vessel-mgmt-header {
    width: 100%;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: linear-gradient(90deg, rgba(52, 58, 64, 0.4) 0%, rgba(52, 58, 64, 0.7) 100%);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.vessel-mgmt-title {
    font-family: "Bebas Neue", sans-serif;
    color: #fff;
    font-size: 28px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    align-items: center;
}

.vessel-mgmt-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 28px;
    background: #007bff;
    margin-right: 12px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 255, 0.3);
}

.vessel-mgmt-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Card styling */
.vessel-mgmt-card {
    background-color: rgba(52, 58, 64, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    overflow: hidden;
}

.vessel-mgmt-card-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vessel-mgmt-card-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.vessel-mgmt-card-header h2 i {
    margin-right: 10px;
    color: #007bff;
}

.vessel-mgmt-card-body {
    padding: 20px;
}

/* Form styling */
.vessel-mgmt-form label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.vessel-mgmt-select,
.vessel-mgmt-input {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
}

.vessel-mgmt-select:focus,
.vessel-mgmt-input:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.vessel-mgmt-submit-btn {
    margin-top: 10px;
}

/* Table styling */
.vessel-mgmt-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
    color: #fff;
}

.vessel-mgmt-table thead th {
    padding: 12px 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.vessel-mgmt-table td {
    padding: 12px 10px;
    vertical-align: middle;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vessel-mgmt-badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.vessel-mgmt-badge-active {
    background-color: rgba(40, 167, 69, 0.2);
    color: #4cceac;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.vessel-mgmt-badge-inactive {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff6384;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Button styling */
.vessel-mgmt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    margin-right: 5px;
    transition: all 0.2s ease;
}

.vessel-mgmt-btn-edit {
    background-color: rgba(23, 162, 184, 0.3);
    border: 1px solid rgba(23, 162, 184, 0.4);
}

.vessel-mgmt-btn-remove {
    background-color: rgba(220, 53, 69, 0.3);
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.vessel-mgmt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.vessel-mgmt-btn-edit:hover {
    background-color: rgba(23, 162, 184, 0.5);
}

.vessel-mgmt-btn-remove:hover {
    background-color: rgba(220, 53, 69, 0.5);
}

/* Alert styling */
.vessel-mgmt-alert {
    background-color: rgba(0, 123, 255, 0.1);
    color: #8bb9ff;
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.vessel-mgmt-alert i {
    margin-right: 8px;
}

.vessel-mgmt-alert-secondary {
    background-color: rgba(108, 117, 125, 0.1);
    color: #adb5bd;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Vessel Management - WebSocket Status */
.vessel-mgmt-sensor-status {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

.vessel-mgmt-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 500;
}

.vessel-mgmt-status-badge i {
    margin-right: 8px;
    color: #007bff;
}

.vessel-mgmt-status-connected {
    color: #4caf50;
}

.vessel-mgmt-status-connecting {
    color: #ff9800;
}

.vessel-mgmt-status-disconnected,
.vessel-mgmt-status-error {
    color: #f44336;
}

/* Live Sensor Cards */
.vessel-mgmt-live-sensors {
    margin-top: 15px;
}

.vessel-mgmt-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 500;
}

.vessel-mgmt-sensor-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.vessel-mgmt-sensor-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.vessel-mgmt-sensor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 123, 255, 0.4);
}

.vessel-mgmt-sensor-card-header {
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vessel-mgmt-sensor-mac {
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.vessel-mgmt-sensor-timestamp {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.vessel-mgmt-sensor-card-body {
    padding: 15px;
}

.vessel-mgmt-sensor-data {
    margin-bottom: 12px;
}

.vessel-mgmt-sensor-data-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.vessel-mgmt-sensor-data-item i {
    width: 20px;
    margin-right: 10px;
    color: #007bff;
}

.vessel-mgmt-assign-btn {
    width: 100%;
    background-color: rgba(0, 123, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 4px;
    padding: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 13px;
}

.vessel-mgmt-assign-btn:hover {
    background-color: rgba(0, 123, 255, 0.4);
}

/* Loading animation */
.vessel-mgmt-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.vessel-mgmt-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vessel-mgmt-no-sensors {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-style: italic;
}
/* SENSOR_MANAGEMENT.HTML STYLES */
.sensor-management-main-content {
    margin-top: 150px;
    width: 100%;
    padding: 20px;
}

.sensor-management-details {
    background-color: #343a40;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    max-width: 50%;
}

.sensor-management-details h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.sensor-management-details h2 {
    color: #75c7c7;
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
}

.sensor-management-details p {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.sensor-management-details form {
    background: rgba(255, 255, 255, 0.05);
    max-width: 400px;
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.sensor-management-details label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1rem;
}

.sensor-management-details input,
.sensor-management-details select {
    width: 100%;
    padding: 12px;
    border: 1px solid #007bff;
    border-radius: 4px;
    background-color: #1a1f24;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sensor-management-details input:focus,
.sensor-management-details select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.sensor-management-details button {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sensor-management-details button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.active-assignments-table {
    margin-top: 30px;
    overflow-x: auto;
}

.active-assignments-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.active-assignments-table th,
.active-assignments-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.active-assignments-table th {
    background-color: rgba(0, 123, 255, 0.1);
    color: #75c7c7;
    font-weight: 500;
}

.active-assignments-table tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.active-assignments-table button {
    background-color: #dc3545;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.active-assignments-table button:hover {
    background-color: #c82333;
}

@media (max-width: 768px) {
    .sensor-management-details form {
        grid-template-columns: 1fr;
    }

    .sensor-management-details {
        padding: 20px;
    }

    .sensor-management-details h1 {
        font-size: 1.8rem;
    }
}

/* STYLES FOR THE SETTINGS PAGE (CAREFUL PLZ) */
.settings-main-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 30px;
    margin-top: 100px;
    width: 100%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

/* Left container - User Profile */
.settings-main-container {
    flex: 0 0 45%; 
    margin-top: 0;
    background: linear-gradient(145deg, rgb(15, 23, 42), rgb(23, 31, 54));
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(117, 199, 199, 0.1);
    position: relative;
    overflow: hidden;
    height: fit-content;
}
.settings-main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #75c7c7, #3a7bd5);
}

.welcome-message {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(117, 199, 199, 0.2);
}

.welcome-message img.nav-logo {
    width: 48px;
    height: 48px;
    margin-right: 20px;
}

.welcome-message h2 {
    margin: 0 20px 0 0;
    font-size: 28px;
    font-weight: 600;
    color: #75c7c7;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.welcome-message p {
    margin: 0 15px 0 0;
    font-size: 16px;
    opacity: 0.9;
    background: rgba(117, 199, 199, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

/* Form Layout */
.settings-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

.settings-form form {
    width: 100%;
    padding: 25px;
    background: rgba(20, 30, 50, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(117, 199, 199, 0.1);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px; 
}

.settings-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.settings-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #75c7c7;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 18px;
}

.settings-form label::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: #75c7c7;
    font-weight: bold;
}

.settings-form .form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid rgba(117, 199, 199, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.settings-form .form-control:focus {
    border-color: #75c7c7;
    box-shadow: 0 0 0 2px rgba(117, 199, 199, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.2);
    outline: none;
    background: rgba(15, 20, 35, 0.7);
}

.settings-form button {
    background: linear-gradient(90deg, #75c7c7, #3a7bd5);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(117, 199, 199, 0.3);
}

.settings-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(117, 199, 199, 0.4);
    background: linear-gradient(90deg, #85d7d7, #4a8be5);
}

/* Fleet, Vessels and Sensors Section */
.vessel-fleet-sensor-settings-container {
    flex: 0 0 45%; 
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.settings-fleet-section {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(23, 31, 54, 0.9));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(117, 199, 199, 0.1);
    position: relative;
}

.settings-fleet-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #75c7c7, #3a7bd5);
}

.settings-fleet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 30, 0.6);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(117, 199, 199, 0.2);
}

.settings-fleet-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #75c7c7;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.settings-fleet-header h3::before {
    content: '\f21a'; /* Ship icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    color: #75c7c7;
}

.settings-vessels-container {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-vessel-section {
    background: rgba(20, 30, 50, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(117, 199, 199, 0.1);
    transition: all 0.3s ease;
}

.settings-vessel-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(117, 199, 199, 0.3);
}

.settings-vessel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(10, 15, 30, 0.4);
    border-bottom: 1px solid rgba(117, 199, 199, 0.1);
}

.settings-vessel-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
}

.settings-vessel-header h4::before {
    content: '\f21a'; /* Ship icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #75c7c7;
    font-size: 14px;
}

.settings-sensors-list {
    padding: 20px;
    background: rgba(15, 20, 35, 0.3);
}

.settings-sensors-list h5 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #75c7c7;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.settings-sensors-list h5::before {
    content: '\f2db'; /* Microchip icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
}

.settings-sensor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background: rgba(10, 15, 30, 0.4);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(117, 199, 199, 0.05);
}

.settings-sensor-item:hover {
    background: rgba(15, 20, 35, 0.6);
    border-color: rgba(117, 199, 199, 0.2);
}

.settings-sensor-item span {
    font-size: 14px;
    color: #fff;
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* Button styling */
.button-group {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #75c7c7, #3a7bd5);
    border: none;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #85d7d7, #4a8be5);
}

.btn-primary i {
    font-size: 12px;
}

/* Responsive design adjustments */
@media (max-width: 992px) {
    .settings-form {
        grid-template-columns: 1fr;
    }
    
    .welcome-message {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .welcome-message img.nav-logo {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .settings-main-content {
        padding: 15px;
    }
    
    .settings-main-container,
    .settings-fleet-section {
        padding: 20px;
    }
    
    .settings-vessel-section {
        margin-right: 0;
    }
}
/* Chat window styling */
#chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    /* height: 400px; debug
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background-color: #262c36;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); */
    z-index: 1000;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #424344;
    color: white;
    border-radius: 10px 10px 0 0;
    height: 50px;
    /* background-color: #1e242e; debug
    color: #75c7c7;
    padding: 10px 15px;
    border-bottom: 1px solid #3a3f48;
    cursor: pointer;
    height: 50px; 
    flex-shrink: 0; 
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px); 
    overflow: hidden;  */
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #262c36;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    background-color: #1e242e;
    border-top: 1px solid #3a3f48;
    height: 100px; 
    flex-shrink: 0; 
}

#chat-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 8px 12px;
    margin-right: 10px;
    color: white;
}

#send-message {
    background-color: #75c7c7;
    color: #0c111d;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap; 
}

#send-message:hover {
    background-color: #85d7d7;
}

.chat-minimized {
    height: auto !important; 
}

.chat-minimized .chat-body {
    display: none !important;
}

/* admin_panel chat styles */
#chat-window select {
    margin-left: 10px;
    background-color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: black;
    font-size: 14px;
    padding: 4px 8px;
    max-width: 150px;
}

#chat-window .chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-select-sm {
    height: 30px;
    padding-top: 2px;
    padding-bottom: 2px;
}

/* STYLES FOR THE ADMIN PANEL */
.admin-panel-main-content {
    display: flex;
    flex-direction: column;
    padding: 30px;
    margin-top: 100px;
    width: 100%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    gap: 25px;
}

/* Main panels layout */
.admin-left-panel, 
.admin-right-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* Admin panel layout */
.admin-panel-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.admin-panel-welcome {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(23, 31, 54, 0.95));
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 31, 31, 0.15);
    position: relative;
    margin-bottom: 10px;
}

.admin-panel-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff3131, #ff9e31);
}

.admin-panel-welcome h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ff3131;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.admin-section {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(23, 31, 54, 0.9));
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(117, 199, 199, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #75c7c7, #3a7bd5);
}

.admin-section h3, 
.database-printout-section h2,
.admin-historic-messages h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: #75c7c7;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(117, 199, 199, 0.2);
}

.admin-section h3::before, 
.database-printout-section h2::before,
.admin-historic-messages h2::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    color: #75c7c7;
}

.admin-section h3::before {
    content: '\f507'; /* User icon */
}

.database-printout-section h2::before {
    content: '\f1c0'; /* Database icon */
}

.admin-historic-messages h2::before {
    content: '\f0e6'; /* Message icon */
}

/* Table styling */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.admin-table th, 
.admin-table td {
    padding: 12px 15px;
    text-align: left;
}

.admin-table th {
    background: rgba(10, 15, 30, 0.6);
    color: #75c7c7;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(117, 199, 199, 0.2);
}

.admin-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table td {
    vertical-align: middle;
}

.btn-primary, 
.btn-warning,
.btn-secondary,
.btn-danger {
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(90deg, #75c7c7, #3a7bd5);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(90deg, #ffa500, #ff6b00);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(90deg, #ff3131, #c41e1e);
    color: #fff;
}

.btn-primary:hover, 
.btn-warning:hover,
.btn-secondary:hover,
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Database Printout Section */
.database-printout-section {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(23, 31, 54, 0.9));
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(117, 199, 199, 0.1);
    position: relative;
}

.database-printout-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #75c7c7, #3a7bd5);
}

.sensor-data-center-tables {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sensor-data-center-tables h2 {
    font-size: 18px;
    font-weight: 500;
    color: #75c7c7;
    margin: 15px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(117, 199, 199, 0.15);
}

.sensor-data-center-tables table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 10px;
    background: rgba(15, 20, 35, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.sensor-data-center-tables th {
    background: rgba(10, 15, 30, 0.6);
    color: #75c7c7;
    font-weight: 500;
    padding: 10px 12px;
    text-align: left;
}

.sensor-data-center-tables td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sensor-data-center-tables tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Message History Section */
.admin-historic-messages {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(23, 31, 54, 0.9));
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(117, 199, 199, 0.1);
    position: relative;
}

.admin-historic-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #75c7c7, #3a7bd5);
}

.message-group {
    margin-bottom: 20px;
    background: rgba(15, 20, 35, 0.4);
    border-radius: 8px;
    padding: 15px;
}

.message-group h3 {
    font-size: 16px;
    font-weight: 500;
    color: #75c7c7;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(117, 199, 199, 0.15);
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.message-item {
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(10, 15, 30, 0.4);
    position: relative;
}

.message-item.sent {
    align-self: flex-end;
    background: rgba(117, 199, 199, 0.15);
    border-bottom-right-radius: 0;
    margin-left: 20px;
}

.message-item.received {
    align-self: flex-start;
    background: rgba(58, 123, 213, 0.15);
    border-bottom-left-radius: 0;
    margin-right: 20px;
}

.message-content {
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.message-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal styling */
.modal-content {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(23, 31, 54, 0.95));
    border-radius: 12px;
    border: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(117, 199, 199, 0.2);
    padding: 15px 20px;
}

.modal-header h5 {
    color: #75c7c7;
    font-weight: 500;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid rgba(117, 199, 199, 0.2);
    padding: 15px 20px;
}

.form-control {
    background: rgba(15, 20, 35, 0.5);
    border: 1px solid rgba(117, 199, 199, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 10px 15px;
}

.form-control:focus {
    background: rgba(15, 20, 35, 0.7);
    border-color: #75c7c7;
    box-shadow: 0 0 0 3px rgba(117, 199, 199, 0.2);
    outline: none;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .admin-panel-main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-panel-main-content {
        padding: 20px;
    }
    
    .admin-section, 
    .database-printout-section,
    .admin-historic-messages {
        padding: 15px;
    }
    
    .admin-table th, 
    .admin-table td,
    .sensor-data-center-tables th,
    .sensor-data-center-tables td {
        padding: 8px;
    }
}

/* Admin navigation links */
.quick-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #75c7c7;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-right: 15px;
    font-weight: 500;
}

.quick-nav-link:hover {
    background: rgba(117, 199, 199, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.quick-nav-link i {
    font-size: 14px;
}

/* activity logs styles mainly inherited */
.activity-main-content {
    margin-top: 100px;
    width: 100%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* ////TEST PAGE! DEMO USE ONLY CURRENTLY // REMOTE ACCESS STYLES */

.remote-main-content {
    padding: 2rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    width: 90%; 
    max-width: 1800px; 
    color: white;
}

.remote-header {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(23, 31, 54, 0.95));
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-left: 4px solid #007bff;
}

.remote-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.status-indicator::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.online {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-indicator.online::before {
    background-color: #4CAF50;
    box-shadow: 0 0 8px #4CAF50;
}

.status-uptime {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.remote-dashboard {
    display: grid;
    gap: 25px;
}

.control-panel {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* Table Styles */
.attempts-table-wrapper {
    background: rgba(37, 35, 35, 0.7);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    min-width: 1000px;
    overflow-x: auto;
}

.attempts-table-wrapper select {
    background-color: #343a40;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 4px;
}

.attempts-table-wrapper select option {
    background-color: #343a40;
    color: white;
}

.attempts-table-wrapper select:focus {
    outline: none;
    border-color: #007bff;
}


.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.refresh-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.panel-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.action-btn.warning:hover {
    color: #FFC107;
    border-color: #FFC107;
}

.action-btn.danger:hover {
    color: #f44336;
    border-color: #f44336;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.search-box input {
    width: 100%;
    padding: 8px 10px 8px 35px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.filter-status select {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.mcu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mcu-map {
    height: 400px;
}

.mcu-card {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mcu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.mcu-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-light.online {
    background-color: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
    animation: pulse-green 2s infinite;
}

.status-light.warning {
    background-color: #FFC107;
    box-shadow: 0 0 10px #FFC107;
    animation: pulse-yellow 1s infinite;
}

.status-light.offline {
    background-color: #9e9e9e;
}

.status-light.quarantine {
    background-color: #FF5722;
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes pulse-yellow {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes pulse-orange {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.mcu-info {
    padding: 15px;
}

.mcu-stats {
    margin-bottom: 15px;
}

.progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.progress {
    height: 100%;
    background-color: #007bff;
    border-radius: 3px;
}

.progress.warning {
    background-color: #FFC107;
}

.debug-console {
    background: rgba(15, 20, 35, 0.8);
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.console-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.console-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px 15px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
}

.map-container {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    margin-top: 25px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    height: 400px;
}

.no-results {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.no-results td {
    color: #888;
    font-style: italic;
}

/* Ensure consistent column widths */
.attempts-table th:nth-child(1) { width: 15%; }  /* Timestamp */
.attempts-table th:nth-child(2) { width: 7%; }  /* IP */
.attempts-table th:nth-child(3) { width: 10%; }  /* Location */
.attempts-table th:nth-child(4) { width: 10%; }  /* Username */
.attempts-table th:nth-child(5) { width: 15%; }  /* Email */
.attempts-table th:nth-child(6) { width: 35%; }  /* User Agent */
.attempts-table th:nth-child(7) { width: 8%; }   /* Status */

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.map-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* Data  Drillback styles */

.drillback-main-content {
    padding: 2rem;
    margin-left: auto; 
    margin-right: auto; 
    margin-top: 120px;
    width: 99%; 
    max-width: 2300px; 
}

.sensor-drillback-container {
    background-color: rgba(20, 20, 30, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.sensor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.sensor-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
}

.sensor-content-layout {
    display: flex;
    flex-direction: row; 
    gap: 1.5rem;
    width: 100%;
}

.sensor-metrics {
    display: flex;
    flex-direction: column; 
    gap: 1rem;
    width: 200px; 
    flex-shrink: 0; 
}

.metric-card {
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.metric-card:hover {
    background-color: rgba(40, 40, 50, 0.8);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.metric-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.graph-container {
    flex: 1; 
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 500px; 
}


.graph-controls {
    margin-bottom: 1rem;
}

.date-range-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.date-input {
    background-color: rgba(20, 20, 30, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
}

.date-input:focus {
    border-color: rgba(37, 99, 235, 0.8);
    outline: none;
}

.query-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.query-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.sensor-chart {
    width: 100% !important;
    height: 400px !important;
    max-width: 100%;
    background-color: rgba(25, 25, 35, 0.5);
    border-radius: 4px;
}

.control-btn {
    background-color: rgba(37, 99, 235, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.35rem 0.7rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: rgba(37, 99, 235, 0.4);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .drillback-main-content {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .drillback-main-content {
        max-width: 100%;
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1rem;
    }
    
    .sensor-content-layout {
        flex-direction: column;
    }
    
    .sensor-metrics {
        flex-direction: row;
        flex: 1 0 100%;
        gap: 1rem;
    }
    
    .metric-card {
        flex: 1;
    }
    
    .graph-container {
        max-width: 100%;
    }
}

/* SYSTEM DATA STYLES */

.system-data-main-content {
    padding: 1.5rem;
    width: 100%;
    min-height: 100vh;
    margin-top: 100px;
    max-width: 2300px;

}

.system-main-container {
    max-width: 2200px;
    margin: 0 auto;
    padding: 20px;
    width: 97%;
}

.system-section-heading {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 24px;
}

.system-info-box {
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.system-info-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #fff;
}

.system-count-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.system-count-item {
    display: flex;
    flex-direction: column;
}

.system-count-number {
    font-size: 32px;
    font-weight: 700;
    color: #4d84ff;
}

.system-count-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Debug container */
.system-debug-container {
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.system-debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(40, 40, 50, 0.7);
    color: #fff;
    cursor: pointer;
}

.system-collapse-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.system-debug-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.system-debug-content.open {
    max-height: 300px;
    overflow-y: auto;
}

#system-debug-info {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
}

/* Fix for EXPANDED CARD LAYOUT */
.system-sensor-expanded-card {
    background-color: rgba(40, 40, 50, 0.7);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.system-sensor-expanded-card:hover {
    transform: translateY(-3px);
}

.system-sensor-layout {
    display: flex;
    flex-direction: row;
}

.system-sensor-info {
    width: 300px;
    min-width: 300px;
    padding: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.system-sensor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.system-sensor-mac {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    font-family: monospace;
}

.system-sensor-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.system-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.system-status-active {
    background-color: #32cd32;
}

.system-status-inactive {
    background-color: #ff4d4d;
}

.system-status-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.system-sensor-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.system-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background-color: rgba(30, 30, 40, 0.5);
    border-radius: 6px;
}

.system-metric-value {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.system-metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
}

.system-sensor-controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto; 
}

.system-history-toggle, .system-export-btn {
    flex: 1;
    background-color: rgba(77, 132, 255, 0.2);
    color: #4d84ff;
    border: 1px solid rgba(77, 132, 255, 0.3);
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.system-history-toggle:hover, .system-export-btn:hover {
    background-color: rgba(77, 132, 255, 0.3);
}

/* generated report styles when you click print */
.system-print-report-btn {
    background-color: #3a7bd5;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.system-print-report-btn:hover {
    background-color: #2a5db5;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.system-sensor-history {
    flex: 1;
    padding: 15px;
    background-color: rgba(25, 25, 35, 0.5);
    display: flex;
    flex-direction: column;
    min-width: 600px; 
    overflow-y: hidden; 
}

.system-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.system-history-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.system-history-filters {
    display: flex;
    gap: 10px;
}

.system-history-display-select,
.system-history-range-select {
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(25, 25, 40, 0.7);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(80, 80, 100, 0.5);
}

.system-history-table-wrapper {
    overflow: auto;
    max-height: 300px;
    margin-right: 5px; 
    flex: 1;
}

.system-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.system-history-table th {
    background-color: rgba(30, 30, 40, 0.8);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 500;
}

.system-history-table td {
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.system-history-item:hover {
    background-color: rgba(40, 40, 50, 0.7);
}

/* Fixed column widths */
.system-history-table th:first-child,
.system-history-table td:first-child {
    width: 100px; /* Time column */
}

.system-history-table th:not(:first-child),
.system-history-table td:not(:first-child) {
    width: 85px; /* Data columns */
    text-align: right;
}

.system-history-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.system-history-load, 
.system-history-temp,
.system-history-pitch,
.system-history-roll,
.system-history-yaw, 
.system-history-battery {
    font-family: monospace;
}

.system-history-loading,
.system-history-empty,
.system-history-error {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px 0;
}

/* Sensors list container */
.system-sensors-list-box {
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.system-sensors-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.system-search-input {
    flex: 1;
    background-color: rgba(40, 40, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    padding: 8px 12px;
}

.system-refresh-btn {
    background-color: rgba(77, 132, 255, 0.2);
    border: 1px solid rgba(77, 132, 255, 0.3);
    color: #4d84ff;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.system-refresh-btn:hover {
    background-color: rgba(77, 132, 255, 0.4);
}

.system-no-data-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    grid-column: 1 / -1;
}

/* Loading indicator */
.system-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    grid-column: 1 / -1;
}

/* Responsive layout fixes */
@media (max-width: 1100px) {
    .system-sensor-layout {
        flex-direction: column;
    }
    
    .system-sensor-info {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .system-sensor-history {
        min-width: 100%;
        max-height: 400px;
        overflow-y: hidden;
    }
    
    .system-history-table-wrapper {
        max-height: 300px;
    }
}

/* Additional responsive fixes */
@media (max-width: 768px) {
    .system-sensor-metrics {
        grid-template-columns: 1fr;
    }
    
    .system-count-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .system-history-table th:nth-child(n+4),
    .system-history-table td:nth-child(n+4) {
        display: none; /* Hide extra columns on small screens */
    }
}

/* Styles for TEST Contact Page */

input[type=text], select, textarea, [type=email]{
    width: 100%; /* Full width */
    padding: 12px; /* Some padding */
    border-radius: 4px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
  }
  
  /* Style the submit button with a specific background color etc */
  input[type=submit] {
    background-color: #04AA6D;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  /* When moving the mouse over the submit button, add a darker green color */
  input[type=submit]:hover {
    background-color: #45a049;
  }


/*                     Styles for test_contact page and table                       */

.tableContainer {
    max-width: 100%; /* Ensure the container does not exceed the screen width */
    overflow-x: auto; /* Enable horizontal scrolling on smaller screens */
}

.tableContainer table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.tableContainer th, td {
    border-bottom: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    word-wrap: break-word; /* Ensures text wraps within the cell */
    word-break: break-word; /* Prevents text from overflowing */
    white-space: normal; /* Allows content to wrap */
}

/* Set column widths dynamically for more columns */
.tableContainer th:nth-child(1), 
.tableContainer td:nth-child(1) { width: 10%; } /* ID */
.tableContainer th:nth-child(2), 
.tableContainer td:nth-child(2) { width: 15%; } /* Name */
.tableContainer th:nth-child(3), 
.tableContainer td:nth-child(3) { width: 15%; } /* Email */
.tableContainer th:nth-child(4), 
.tableContainer td:nth-child(4) { width: 15%; } /* Phone */
.tableContainer th:nth-child(5), 
.tableContainer td:nth-child(5) { width: 30%; } /* Enquiry */
.tableContainer th:nth-child(6), 
.tableContainer td:nth-child(6) { width: 15%; } /* Date */
.tableContainer th:nth-child(7), 
.tableContainer td:nth-child(7) {  /* Actions ( Delete button ) */
    width: 10%; /* Increase width to prevent button text from wrapping */
    min-width: 100px; /* Ensure a minimum width */
    text-align: center; /* Center the button */
}

.tableContainer tr:hover {
    background-color: #ff7f50; /* Slightly darker coral for better contrast */
    transition: background-color 0.3s ease-in-out;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .tableContainer th, .tableContainer td {
        font-size: 14px;
        padding: 8px;
    }
}

.testContactContainer {
    width: 100%;
    padding: 20px;
}

.button-container {
    display: flex;
    gap: 10px; /* Adds space between buttons */
}


/*             Button Styles for test_contact page          */


.clear-btn{
    background-color: #ff4d4d; /* Red for clear */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap; /* Prevents wrapping */
    transition: background-color 0.3s ease-in-out;
}

.clear-btn:hover {
    background-color: #cc0000;
}


/* Flash Messages */
.flash-messages {
    margin-top: 10px;
    text-align: center;
}

.flash-message {
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.flash-message.success {
    background-color: #4CAF50;
    color: white;
}

.flash-message.warning {
    background-color: #ff9800;
    color: white;
}

.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

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

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Minimize chat */
.chat-header-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.chat-header-content h4 {
    margin: 0;
    margin-right: 10px;
}

.chat-minimize-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-body {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-container.minimized {
    height: 50px;
}

.chat-container.minimized .chat-body,
.chat-container.minimized .chat-header-content select {
    display: none;
}

/* Override for settings page flash message close button */
.settings-main-content .alert .btn-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: inherit;
    border: none;
    padding: 0;
    margin-left: 10px;
    opacity: 0.7;
    font-size: 1.25rem;
    line-height: 1;
    float: right;
}