/* CSS Variables */
:root {
    --bg-color: #1e1e1e;
    --surface-color: #252526;
    --border-color: #3e3e42;
    --text-color: #cccccc;
    --text-secondary: #9cdcfe;
    --accent-color: #007acc;
    --hover-color: #2a2d2e;
    --primary-color: #8bc34a;
    --input-background: #3c3c3c;
    --text-disabled: #666666;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

/* Title Bar */
.title-bar {
    background: #000;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid #3e3e42;
    position: relative;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Onglets intégrés dans le header */
.header-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 6px;
    padding: 2px;
    border: 1px solid rgba(62, 62, 66, 0.3);
}

.header-tab {
    background: transparent;
    border: none;
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    min-width: 70px;
    justify-content: center;
}

.header-tab i {
    font-size: 12px;
}

.header-tab span {
    font-weight: 500;
}

.header-tab:hover {
    background: rgba(62, 62, 66, 0.8);
    color: #ffffff;
    transform: translateY(-1px);
}

.header-tab.active {
    background: rgba(0, 120, 212, 0.9);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.header-tab.active:hover {
    background: rgba(0, 120, 212, 1);
    transform: translateY(-1px);
}

.header-left .zone-selector-toolbar {
    position: static;
    background: none;
    box-shadow: none;
}

.header-left .zone-selector-group {
    display: flex;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 4px;
}

.header-left .zone-selector-group::-webkit-scrollbar {
    display: none;
}

.header-left .zone-selector-btn {
    background: none;
    border: none;
    color: #cccccc;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 36px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-left .zone-selector-btn svg {
    color: inherit;
    stroke: currentColor;
    transition: all 0.2s;
}

.header-left .zone-selector-btn:focus {
    outline: none;
    box-shadow: none;
}

.header-left .zone-selector-btn:hover {
    color: #0078d4;
    transform: translateY(-1px);
}

.header-left .zone-selector-btn.active {
    color: #0078d4;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: #0078d4;
    font-size: 16px;
}

.logo span {
    font-weight: 600;
    font-size: 14px;
}

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

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.system-status span:last-child {
    color: #cccccc;
    font-size: 12px;
}

.title-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.system-status-center {
    color: #4caf50;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 10px;
    opacity: 1;
}



.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.title-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    background: none;
    border: none;
    color: #cccccc;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.header-icon-btn:hover {
    background: rgba(62, 62, 66, 0.5);
    color: #ffffff;
}

.header-icon-btn.logout:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #ff6b6b;
}

.lang-indicator {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4caf50;
}

.title-btn {
    background: none;
    border: none;
    color: #cccccc;
    padding: 6px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.title-btn:hover {
    background: #3e3e42;
    color: #ffffff;
}

.title-btn.emergency {
    color: #ff6b6b;
}

.title-btn.emergency:hover {
    background: rgba(255, 107, 107, 0.1);
}

.window-controls {
    display: flex;
    margin-left: 10px;
}

.window-btn {
    background: none;
    border: none;
    color: #cccccc;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
}

.window-btn:hover {
    background: #3e3e42;
}

.window-btn.close:hover {
    background: #e74c3c;
    color: #ffffff;
}

/* Main Container */
.main-container {
    display: flex;
    height: calc(100vh - 35px);
    position: relative;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    background: rgb(0 0 0 / 54%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    min-width: 250px;
    max-width: 350px;
    width: 300px;
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
    z-index: 100;
}

.sidebar.left-sidebar {
    left: 15px;
    top: 15px;
    bottom: 15px;
    height: calc(100% - 30px);
    border-radius: 8px;
    border: 1px solid rgba(62, 62, 66, 0.3);
}

.sidebar.right-sidebar {
    right: 15px;
    top: 15px;
    bottom: 15px;
    height: calc(100% - 30px);
    border-radius: 8px;
    border: 1px solid rgba(62, 62, 66, 0.3);
}

.sidebar.collapsed {
    width: 0;
    min-width: 0;
}

.sidebar.left-sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar.right-sidebar.collapsed {
    transform: translateX(100%);
}

.sidebar-header {
    background: 000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid rgba(62, 62, 66, 0.2);
    transition: all 0.3s ease;
}

.right-sidebar .sidebar-header {
    flex-direction: row;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.right-sidebar .sidebar-toggle {
    order: 1;
    margin-right: auto;
}

.right-sidebar .sidebar-tabs {
    order: 2;
    margin-left: auto;
}



.sidebar-tabs {
    display: flex;
    gap: 2px;
    transition: all 0.3s ease;
    display: none;
}



.sidebar-tab {
    background: none;
    border: none;
    color: #cccccc;
    padding: 6px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}



.sidebar-tab:hover {
    background: #3e3e42;
    color: #ffffff;
}

.sidebar-tab.active {
    background: #424242;
    color: #ffffff;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #cccccc;
    padding: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}



.sidebar-toggle:hover {
    background: #3e3e42;
    color: #ffffff;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-panel {
    display: none !important;
}

/* Onglets intégrés dans le header - Masqués par défaut */
.sidebar-floating-tabs {
    display: none;
}

.sidebar-floating-tabs.show {
    display: none;
}

.floating-tab-btn i {
    font-size: 14px;
}

.floating-tab-btn span {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Onglets intégrés dans le header - Masqués par défaut */
.sidebar-floating-tabs-right {
    display: none;
}

.sidebar-floating-tabs-right.show {
    display: none;
}

.floating-tab-btn-right i {
    font-size: 14px;
}

.floating-tab-btn-right span {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.sidebar-panel.active {
    display: flex;
}

.panel-header {

    padding: 10px 15px;
    border-bottom: 1px solid rgba(62, 62, 66, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.panel-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.panel-action {
    background: none;
    border: none;
    color: #cccccc;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.panel-action:hover {
    background: #3e3e42;
    color: #ffffff;
}

/* File Tree */
.file-tree {
    padding: 10px;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s;
}

.tree-item:hover {
    background: #2a2d2e;
}

.tree-item.selected {
    background: #0078d4;
    color: #ffffff;
}

.tree-item.folder {
    font-weight: 500;
}

.tree-children {
    margin-left: 20px;
}

.tree-item i {
    color: #7f7f7f;
    width: 16px;
    text-align: center;
}

.tree-item.folder i {
    color: #dcb67a;
}

.tree-item.file i {
    color: #519aba;
}

/* Drone Tree */
.drone-tree {
    padding: 10px;
}

.tree-item.drone-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 11px;
    transition: all 0.2s;
    position: relative;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.tree-item.drone-item:hover {
    background: #2a2d2e;
}

.tree-item.drone-item.selected {
    background: #0078d4;
    color: #ffffff;
}

.tree-item.drone-item i {
    color: #0078d4;
    width: 18px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 2px;
}

.tree-item.drone-item.offline i {
    color: #f44336;
}

.tree-item.drone-item.online i {
    color: #4caf50;
}

.tree-item.drone-item.selected i {
    color: #ffffff !important;
}

.tree-item.drone-item > span {
    font-weight: 600;
    color: #ffffff;
    min-width: 75px;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.drone-details {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.drone-details .drone-status {
    color: #cccccc;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
    flex-shrink: 1;
}

.drone-details .drone-battery {
    color: #4caf50;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: rgba(76, 175, 80, 0.1);
    padding: 1px 3px;
    border-radius: 2px;
    min-width: 28px;
    max-width: 35px;
    text-align: center;
    font-size: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.tree-item.drone-item.offline .drone-details .drone-battery {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

/* Responsive drone details */
@media (max-width: 280px) {
    .tree-item.drone-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 4px 8px;
    }
    
    .drone-details {
        margin-left: 20px;
        margin-top: 2px;
        width: calc(100% - 20px);
        justify-content: space-between;
    }
    
    .tree-item.drone-item > span {
        max-width: none;
    }
    
    .drone-details .drone-status {
        max-width: 120px;
    }
}

/* Groups List */
.groups-list {
    padding: 10px;
}

.groups-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.group-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s;
    align-items: center;
}

.group-row:hover {
    background: #2a2d2e;
}

.group-row.selected {
    background: #0078d4;
    color: #ffffff;
}

.group-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-cell i {
    color: #00d4ff;
    width: 16px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.group-row.selected .group-cell i {
    color: #ffffff;
}

.group-cell span {
    font-weight: 500;
    color: #ffffff;
}

.group-cell.count {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #00d4ff;
    justify-content: center;
    min-width: 40px;
}

.group-row.selected .group-cell.count {
    color: #ffffff;
}

.status-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-align: center;
    min-width: 50px;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.status-badge.inactive {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid #9e9e9e;
}

.status-badge.warning {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.status-badge.neutral {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid #2196f3;
}

/* Group Details */
.group-details {
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    margin: 4px 0;
    padding: 12px;
    display: none;
    animation: slideDown 0.3s ease;
}

.group-details.show {
    display: block;
}

.group-details h4 {
    color: #ffffff;
    font-size: 13px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.group-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.group-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.group-detail-label {
    font-size: 9px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-detail-value {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}

.group-drones-list {
    margin-top: 8px;
}

.group-drones-title {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.group-drone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    background: rgba(62, 62, 66, 0.3);
    border-radius: 3px;
    margin-bottom: 2px;
    font-size: 10px;
    gap: 12px;
}

.group-drone-name {
    color: #ffffff;
    font-weight: 500;
}

.group-drone-battery {
    color: #4caf50;
    font-size: 9px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: rgba(76, 175, 80, 0.1);
    padding: 1px 3px;
    border-radius: 2px;
    min-width: 28px;
    text-align: center;
}

.group-drone-battery.offline {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 12px;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding: 12px;
    }
}

/* Mission Details */
.mission-details {
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    margin: 4px 0;
    padding: 12px;
    display: none;
    animation: slideDown 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.mission-details.show {
    display: block;
}

.mission-details h4 {
    color: #ffffff;
    font-size: 13px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.mission-field {
    margin-bottom: 12px;
}

.mission-field label {
    display: block;
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.mission-field input, .mission-field textarea, .mission-field select {
    width: 100%;
    background: #23232a;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
    padding: 6px 8px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
}


.mission-field textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 100px;
}

.mission-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.mission-type-card {
    background: rgba(62, 62, 66, 0.3);
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.mission-type-card:hover {
    background: rgba(62, 62, 66, 0.5);
    border-color: #0078d4;
}

.mission-type-card.selected {
    background: rgba(0, 120, 212, 0.2);
    border-color: #0078d4;
}

.mission-type-card i {
    font-size: 16px;
    color: #0078d4;
    margin-bottom: 4px;
    display: block;
}

.mission-type-title {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.mission-type-desc {
    font-size: 9px;
    color: #888888;
}

.mission-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.mission-param-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mission-param-label {
    font-size: 9px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mission-param-input {
    background: #23232a;
    border: 1px solid #3e3e42;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    padding: 4px 6px;
    font-family: 'Courier New', monospace;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}



.mission-param-unit {
    font-size: 9px;
    color: #888888;
    margin-left: 4px;
}

/* === FLEET TREE STYLES === */
.fleet-controls {
    padding: 12px 16px;
    border-bottom: 1px solid #3e3e42;
    flex-shrink: 0;
}

.fleet-controls-compact {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fleet-search-toggle {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-toggle-btn {
    display: flex
;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 33px;
    background: #2d2d3000;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    color: #9cdcfe;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-toggle-btn:hover {
    background: #3e3e42;
    color: #cccccc;
}

.search-toggle-btn.active {
    background: #0078d4;
    color: #ffffff;
    border-color: #0078d4;
}

.fleet-search {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: #2d2d30;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    padding: 2px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.fleet-search.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fleet-search input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #cccccc;
    font-size: 12px;
    height: 100%;
}

.fleet-search input:focus {
    outline: none;
    background: #1e1e1e;
}

.clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9cdcfe;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s;
}

.clear-search:hover {
    background: #3e3e42;
    color: #cccccc;
}

.fleet-filters {
    display: flex;
    gap: 8px;
    flex: 1;
    transition: opacity 0.3s ease;
}

.fleet-controls-compact.search-active .fleet-filters {
    opacity: 0.3;
    pointer-events: none;
}

.fleet-filters select {
    flex: 1;
    padding: 8px 8px;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    background: #2d2d3000;
    color: #cccccc;
    font-size: 11px;
    cursor: pointer;
    min-width: 85px;
    max-width: 105px;
}

.fleet-filters select:focus {
    outline: none;
    border-color: #0078d4;
    background: #1e1e1e;
}

/* Fleet Filter Statistics */
.fleet-filter-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 12px;
    /* border-bottom: 1px solid #3e3e42; */
    flex-shrink: 0;
    background: #1a1a1a;
    border-radius: 8px;
    /* padding: 4px; */
    margin: 10px;
}

.fleet-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid #3e3e42;
    border-radius: 8px;
    background: rgba(45, 45, 48, 0.6);
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    outline: none;
    font-size: 12px;
    min-height: 60px;
}

.fleet-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.fleet-filter-btn:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    color: #ffffff;
}

.fleet-filter-btn:hover::before {
    left: 100%;
}

.fleet-filter-btn.active {
    background: rgba(76, 175, 80, 0.25);
    border-color: #4caf50;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transform: translateY(-1px);
}

.fleet-filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(76, 175, 80, 0.2);
}

.filter-value {
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.filter-icon {
    font-size: 16px;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Specific filter colors */
.fleet-filter-btn[data-filter="online"] .filter-icon {
    color: #4caf50;
}

.fleet-filter-btn[data-filter="armed"] .filter-icon {
    color: #ff9800;
}

.fleet-filter-btn[data-filter="alert"] .filter-icon {
    color: #f44336;
}

.fleet-filter-btn[data-filter="online"]:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.fleet-filter-btn[data-filter="armed"]:hover {
    background: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.4);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.fleet-filter-btn[data-filter="alert"]:hover {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.4);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

.fleet-filter-btn[data-filter="online"].active {
    background: rgba(76, 175, 80, 0.25);
    border-color: #4caf50;
}

.fleet-filter-btn[data-filter="armed"].active {
    background: rgba(255, 152, 0, 0.25);
    border-color: #ff9800;
}

.fleet-filter-btn[data-filter="alert"].active {
    background: rgba(244, 67, 54, 0.25);
    border-color: #f44336;
}

.fleet-tree {
    flex: 1;
    padding: 12px;
    transition: transform 0.2s ease;
    overflow-y: auto;
    min-height: 0; /* Permet au flex de se contracter */
    scrollbar-width: thin;
    scrollbar-color: #666666 #252526;
}

.fleet-tree::-webkit-scrollbar {
    width: 6px;
}

.fleet-tree::-webkit-scrollbar-track {
    background: #252526;
}

.fleet-tree::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 3px;
}

.fleet-tree::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* === TREE NODE STYLES === */
.tree-node {
    margin-bottom: 3px;
    user-select: none;
}

.node-content {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 36px;
}

.node-content:hover {
    background: #000000;
}

.tree-node.selected > .node-content {
    background: rgba(139, 195, 74, 0.15);
    border: 1px solid rgba(139, 195, 74, 0.3);
}

/* Node Toggle */
.node-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    transition: all 0.2s ease;
    color: #9cdcfe;
    flex-shrink: 0;
}

.node-toggle:hover {
    background: #2a2d2e;
    color: #cccccc;
}

.node-toggle i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.tree-node.collapsed .node-toggle i {
    transform: rotate(-90deg);
}

/* Node Checkbox */
.node-checkbox {
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

.node-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #2d2d30;
    border: 2px solid #4a4a4a;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
    outline: none;
}

.node-checkbox input[type="checkbox"]:hover {
    border-color: #6a6a6a;
    background: #3a3a3a;
}

.node-checkbox input[type="checkbox"]:focus {
    border-color: #8bc34a;
    box-shadow: 0 0 0 2px rgba(139, 195, 74, 0.2);
}

.node-checkbox input[type="checkbox"]:checked {
    background: #8bc34a;
    border-color: #8bc34a;
}

.node-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 2px;
    top: -1px;
    width: 4px;
    height: 8px;
    border: 2px solid #ffffff;
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

.node-checkbox input[type="checkbox"]:indeterminate {
    background: #8bc34a;
    border-color: #8bc34a;
}

.node-checkbox input[type="checkbox"]:indeterminate::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 4px;
    width: 6px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

/* Node Icon */
.node-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #9cdcfe;
    flex-shrink: 0;
}

.drone-icon {
    color: #8bc34a;
}

.tree-node.offline .drone-icon {
    color: #666666;
}

/* Node Label */
.node-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    max-width: 150px;
}

.node-name {
    font-weight: 500;
    color: #cccccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.node-name.editable:hover {
    text-decoration: underline;
}

.node-count {
    font-size: 11px;
    color: #9cdcfe;
    font-weight: 400;
}

/* Node Details (for drones) */
.node-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: auto;
    margin-right: 8px;
    font-size: 11px;
    min-width: 60px;
    flex-shrink: 0;
}

.drone-status {
    font-weight: 500;
}

.drone-status.armed {
    color: #ff9800;
}

.drone-status.disarmed {
    color: #9cdcfe;
}

.drone-status.offline {
    color: #666666;
}

.drone-battery {
    font-weight: 600;
}

.drone-battery.excellent {
    color: #4caf50;
}

.drone-battery.good {
    color: #8bc34a;
}

.drone-battery.warning {
    color: #ff9800;
}

.drone-battery.critical {
    color: #f44336;
}

.drone-battery.unknown {
    color: #666666;
}

/* Node Status */
.node-status {
    display: flex;
    align-items: center;
    margin-left: 4px;
    flex-shrink: 0;
    min-width: fit-content;
}

.status-indicator {
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    min-width: 41px;
    box-sizing: border-box;
}

.status-indicator.overall,
.status-indicator.active,
.status-indicator.warning,
.status-indicator.empty,
.status-indicator.neutral {
    background: #3f3f3f;
    color: #ffffff;
    /* border: 1px solid #777777; */
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #4caf50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
}

.status-dot.armed {
    background: #ff9800;
    box-shadow: 0 0 4px rgba(255, 152, 0, 0.4);
}

.status-dot.offline {
    background: var(--text-disabled);
}

/* Node Actions */
.node-actions {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.node-content:hover .node-actions {
    display: flex;
}

.node-action {
    padding: 4px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 12px;
}

.node-action:hover {
    background: var(--hover-color);
    color: var(--text-color);
}

/* Node Children */
.node-children {
    margin-left: 20px;
    border-left: 1px solid #3e3e42;
    margin-top: 4px;
    margin-bottom: 4px;
    display: block;
    transition: all 0.2s ease;
}

.tree-node.collapsed > .node-children {
    display: none !important;
}

.tree-node.expanded > .node-children {
    display: block !important;
}

/* Node Indent (for drone nodes) */
.node-indent {
    width: 20px;
}

/* Special Node Types */
.tree-node.root-node > .node-content {
    background: rgba(139, 195, 74, 0.1);
    border: 1px solid rgba(139, 195, 74, 0.2);
    font-weight: 600;
    margin-bottom: 8px;
}

.tree-node.group-node.empty > .node-content {
    opacity: 0.7;
}

.tree-node.drone-node.offline > .node-content {
    opacity: 0.6;
}

/* Empty Group Message */
.empty-group-message {
    padding: 16px;
    text-align: center;
    color: #9cdcfe;
    font-style: italic;
    font-size: 12px;
}

.empty-group-message i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Load More Button */
.load-more {
    margin: 8px 0;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: 1px dashed #3e3e42;
    border-radius: 6px;
    background: none;
    color: #9cdcfe;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: #2a2d2e;
    border-style: solid;
    color: #cccccc;
}

/* Drag and Drop */
.tree-node.drag-over > .node-content {
    background: rgba(139, 195, 74, 0.2);
    border: 2px dashed var(--primary-color);
}

.tree-node.dragging {
    opacity: 0.5;
}

/* Panel Actions */
.panel-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 200px;
    padding: 8px 0;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #cccccc;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #2a2d2e;
}

.dropdown-item i {
    width: 16px;
    color: #9cdcfe;
}

.dropdown-divider {
    height: 1px;
    background: #3e3e42;
    margin: 4px 0;
}

.mission-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-item:hover {
    background: #000000;
}

.mission-item.active {
    border-left-color: #4caf50;
}

.mission-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    flex-shrink: 0;
}

.mission-item.active .mission-icon {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.mission-item.completed .mission-icon {
    background: rgba(96, 125, 139, 0.3);
    color: #607d8b;
}

.mission-icon i {
    font-size: 14px;
    color: #cccccc;
}

.mission-info {
    flex: 1;
}

.mission-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.mission-type {
    font-size: 11px;
    color: #cccccc;
    margin-top: 2px;
}

.mission-status {
    font-size: 14px;
}

.mission-status.running {
    color: #4caf50;
}

.mission-status.ready {
    color: #ff9800;
}

/* Mission Priority Colors */
.mission-status.critical {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 4px;
}

.mission-status.high {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 4px;
}

.mission-status.low {
    color: #757575;
    background: rgba(117, 117, 117, 0.1);
    border-radius: 4px;
}

.mission-status.normal {
    color: #2196f3;
}

/* Central Area */
.central-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Tab Bar */
.tab-bar {
    background: #2d2d30;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3e3e42;
    overflow-x: auto;
}

.tab-list {
    display: flex;
    flex: 1;
}

.tab {
    background: none;
    border: none;
    color: #cccccc;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.tab:hover {
    background: #3e3e42;
    color: #ffffff;
}

.tab.active {
    background: #1e1e1e;
    color: #ffffff;
    border-bottom-color: #0078d4;
}

.tab-close {
    background: none;
    border: none;
    color: #cccccc;
    margin-left: 8px;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
    transition: all 0.2s;
}

.tab-close:hover {
    background: #f44336;
    color: #ffffff;
}

.tab-add {
    background: none;
    border: none;
    color: #cccccc;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.tab-add:hover {
    background: #3e3e42;
    color: #ffffff;
}

/* Content Area */
.content-area {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.tab-content {
    display: none;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tab-content.active {
    display: block;
}

/* Map Tab - Remplacé par la barre flottante */
/* .map-toolbar {
    background: #2d2d30;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid #3e3e42;
}

.toolbar-group {
    display: flex;
    gap: 4px;
}

.tool-btn {
    background: none;
    border: none;
    color: #cccccc;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: #3e3e42;
    color: #ffffff;
}

.tool-btn.active {
    background: #0078d4;
    color: #ffffff;
}

.tool-btn.map-mode {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 50px;
    justify-content: center;
}

.tool-btn.map-mode span {
    font-size: 10px;
    font-weight: 600;
}

.tool-btn.map-mode.active {
    background: #4caf50;
    color: #ffffff;
}

.tool-group {
    display: flex;
    gap: 2px;
    padding: 0 8px;
    border-right: 1px solid #3e3e42;
}

.tool-group:last-of-type {
    border-right: none;
}

.zone-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(62, 62, 66, 0.8);
    border-radius: 6px;
    padding: 4px 8px;
}

.tool-group-label {
    color: #cccccc;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
}

.zone-btn {
    background: rgba(45, 45, 48, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 32px;
    min-height: 32px;
}

.zone-btn i {
    font-size: 10px;
}

.zone-btn span {
    font-size: 8px;
    font-weight: bold;
}

.zone-btn:hover {
    background: rgba(0, 120, 212, 0.6);
    color: #ffffff;
    border-color: rgba(0, 120, 212, 0.8);
    transform: translateY(-1px);
}

.zone-btn.active {
    background: rgba(0, 120, 212, 0.8);
    color: #ffffff;
    border-color: rgba(0, 120, 212, 1);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.mission-tool {
    background: none;
    border: none;
    color: #cccccc;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.mission-tool:hover {
    background: #3e3e42;
    color: #ffffff;
}

.mission-tool.active {
    background: #0078d4;
    color: #ffffff;
}

.toolbar-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    color: #cccccc;
}

.coordinates {
    font-family: 'Courier New', monospace;
    background: #1e1e1e;
    padding: 2px 6px;
    border-radius: 3px;
}

.scale {
    color: #7f7f7f;
} */

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
    height: 100%; /* Hauteur complète sans toolbar */
    transition: all 0.3s ease;
}

/* Map Zones System */
.map-zone-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-zones-container {
    display: grid;
    width: 100%;
    height: 100%;
    gap: 2px;
    background: #1a1a1a;
}

.map-zones-container.zones-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.map-zones-container.zones-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.map-zones-container.zones-3 .map-zone:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
}

.map-zones-container.zones-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.map-zone {
    position: relative;
    background: #1a1a1a;
    border: 2px solid rgba(0, 120, 212, 0.3);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.map-zone:hover {
    border-color: rgba(0, 120, 212, 0.6);
}

.map-zone.zone-1 {
    border-color: rgba(76, 175, 80, 0.4);
}

.map-zone.zone-1:hover {
    border-color: rgba(76, 175, 80, 0.8);
}

.map-zone.zone-2 {
    border-color: rgba(255, 193, 7, 0.4);
}

.map-zone.zone-2:hover {
    border-color: rgba(255, 193, 7, 0.8);
}

.map-zone.zone-3 {
    border-color: rgba(255, 87, 34, 0.4);
}

.map-zone.zone-3:hover {
    border-color: rgba(255, 87, 34, 0.8);
}

.map-zone.zone-4 {
    border-color: rgba(156, 39, 176, 0.4);
}

.map-zone.zone-4:hover {
    border-color: rgba(156, 39, 176, 0.8);
}

.map-zone-header {
    background: rgba(45, 45, 48, 0.9);
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
}

.map-zone-title {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-zone-title i {
    font-size: 10px;
}

.map-zone.zone-1 .map-zone-title {
    color: #4caf50;
}

.map-zone.zone-2 .map-zone-title {
    color: #ffc107;
}

.map-zone.zone-3 .map-zone-title {
    color: #ff5722;
}

.map-zone.zone-4 .map-zone-title {
    color: #9c27b0;
}

.map-zone-controls {
    display: flex;
    gap: 2px;
}

.map-zone-btn {
    background: none;
    border: none;
    color: #cccccc;
    padding: 2px 4px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
}

.map-zone-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.map-zone-content {
    flex: 1;
    position: relative;
}

.zone-map {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

.zone-widgets-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Zone Map Markers */
.drone-marker-zone {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drone-marker-zone:hover {
    transform: scale(1.2);
}

/* Zone Map Controls */
.map-zone .leaflet-control-container .leaflet-top.leaflet-left {
    display: none; /* Masquer les contrôles par défaut dans les zones */
}

.map-zone .leaflet-popup-content-wrapper {
    background: #252526 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.map-zone .leaflet-popup-content {
    margin: 8px 12px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

.map-zone .leaflet-popup-tip {
    background: #252526 !important;
}

.leaflet-map {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.leaflet-map.mode-3d {
    filter: contrast(1.1) saturate(1.2);
}

.leaflet-map.mode-2d {
    filter: none;
}

/* Leaflet dark theme adjustments */
.leaflet-control-container {
    filter: invert(1) hue-rotate(180deg);
}

.leaflet-control-zoom {
    border: 1px solid #3e3e42 !important;
}

.leaflet-control-zoom a {
    background-color: #252526 !important;
    color: #ffffff !important;
    border-bottom: 1px solid #3e3e42 !important;
}

/* Custom marker styles */
.drone-marker-custom,
.waypoint-marker-custom {
    background: transparent !important;
    border: none !important;
}

/* Leaflet popup dark theme */
.leaflet-popup-content-wrapper {
    background: #252526 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-content {
    margin: 12px 16px !important;
    line-height: 1.4 !important;
}

.leaflet-popup-content h4 {
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #3e3e42 !important;
    padding-bottom: 4px !important;
}

.leaflet-popup-content p {
    margin: 4px 0 !important;
    font-size: 12px !important;
    color: #cccccc !important;
}

.leaflet-popup-content strong {
    color: #ffffff !important;
}

.leaflet-popup-tip {
    background: #252526 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-popup-close-button {
    color: #cccccc !important;
    font-size: 16px !important;
    padding: 4px 8px !important;
}

.leaflet-popup-close-button:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Zone popup styling */
.zone-popup h4 {
    color: #ffffff !important;
    margin-bottom: 8px !important;
}

.zone-popup p {
    color: #cccccc !important;
    margin: 0 !important;
}

/* Drone popup styling */
.drone-popup h4 {
    color: #4caf50 !important;
}

/* Waypoint popup styling */  
.waypoint-popup h4 {
    color: #2196f3 !important;
}

/* Drone Widgets */
#droneWidgetsContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1500;
}

/* Mission Widgets */
#missionWidgetsContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1050;
}

.drone-widget {
    position: absolute;
    width: 280px;
    min-height: 180px;
    background: rgb(37 37 38 / 53%);
    border: 1px solid rgba(62, 62, 66, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    cursor: move;
    user-select: none;
    transition: all 0.2s ease;
    z-index: 1000; /* Apparaître au-dessus des sidebars (z-index: 100) */
}

.drone-widget:hover {
    background: rgba(37, 37, 38, 0.95);
    border-color: rgba(0, 120, 212, 0.8);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.drone-widget.dragging {
    transform: rotate(2deg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    z-index: 1001;
    transition: none !important;
    backdrop-filter: blur(5px);
}

.drone-widget-header {
    background: rgb(0 0 0);
    padding: 2px 7px;
    border-radius: 7px 7px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
}

.drone-widget-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drone-widget-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s;
}

.drone-widget-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.drone-widget-content {
    padding: 12px;
    color: #cccccc;
}

.drone-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.drone-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drone-info-label {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drone-info-value {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.drone-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.drone-status-indicator.active {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.drone-status-indicator.warning {
    background: #f44336;
    box-shadow: 0 0 6px rgba(244, 67, 54, 0.6);
}

.drone-status-indicator.idle {
    background: #2196f3;
    box-shadow: 0 0 6px rgba(33, 150, 243, 0.6);
}

.drone-status-indicator.returning {
    background: #ff9800;
    box-shadow: 0 0 6px rgba(255, 152, 0, 0.6);
}

.drone-battery-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.drone-battery-fill {
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.drone-battery-fill.high {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.drone-battery-fill.medium {
    background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.drone-battery-fill.low {
    background: linear-gradient(90deg, #f44336, #ef5350);
}

.drone-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.drone-action-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.drone-actions .assign-mission-btn {
    background: rgb(0 0 0 / 80%);
    border-color: rgba(0, 120, 212, 0.8);
}

.drone-actions .assign-mission-btn:hover {
    background: rgba(0, 120, 212, 1);
    border-color: rgba(0, 120, 212, 1);
}

.drone-action-btn {
    background: rgba(62, 62, 66, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    height: 32px;
}

.drone-action-btn:hover {
    background: rgba(0, 120, 212, 0.6);
    color: #ffffff;
    border-color: rgba(0, 120, 212, 0.8);
}

/* Flight Controls */
.drone-flight-controls {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(40, 40, 40, 0.3);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flight-control-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.flight-control-row:last-child {
    grid-template-columns: 1fr;
}

.drone-flight-btn {
    background: rgba(62, 62, 66, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    height: 28px;
    text-transform: uppercase;
}

.drone-flight-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ARM/DISARM States */
.drone-flight-btn.arm-btn[data-state="disarmed"] {
    background: rgba(255, 193, 7, 0.8);
    border-color: rgba(255, 193, 7, 0.8);
    color: #000000;
}

.drone-flight-btn.arm-btn[data-state="disarmed"]:hover {
    background: rgba(255, 193, 7, 1);
    border-color: rgba(255, 193, 7, 1);
}

.drone-flight-btn.arm-btn[data-state="armed"] {
    background: rgba(76, 175, 80, 0.8);
    border-color: rgba(76, 175, 80, 0.8);
    color: #ffffff;
}

.drone-flight-btn.arm-btn[data-state="armed"]:hover {
    background: rgba(76, 175, 80, 1);
    border-color: rgba(76, 175, 80, 1);
}

/* TAKEOFF/LAND States - Neutral styling */
.drone-flight-btn.takeoff-btn {
    background: rgba(62, 62, 66, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

.drone-flight-btn.takeoff-btn:hover {
    background: rgba(0, 120, 212, 0.6);
    border-color: rgba(0, 120, 212, 0.8);
    color: #ffffff;
}

/* SAFETY States */
.drone-flight-btn.safety-btn[data-state="off"] {
    background: rgba(244, 67, 54, 0.8);
    border-color: rgba(244, 67, 54, 0.8);
    color: #ffffff;
}

.drone-flight-btn.safety-btn[data-state="off"]:hover {
    background: rgba(244, 67, 54, 1);
    border-color: rgba(244, 67, 54, 1);
}

.drone-flight-btn.safety-btn[data-state="on"] {
    background: rgba(76, 175, 80, 0.8);
    border-color: rgba(76, 175, 80, 0.8);
    color: #ffffff;
}

.drone-flight-btn.safety-btn[data-state="on"]:hover {
    background: rgba(76, 175, 80, 1);
    border-color: rgba(76, 175, 80, 1);
}

/* RTH/RTSZ Buttons - Neutral styling */
.drone-flight-btn.rth-btn {
    background: rgba(62, 62, 66, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

.drone-flight-btn.rth-btn:hover {
    background: rgba(0, 120, 212, 0.6);
    border-color: rgba(0, 120, 212, 0.8);
    color: #ffffff;
}

.drone-flight-btn.rtsz-btn {
    background: rgba(62, 62, 66, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

.drone-flight-btn.rtsz-btn:hover {
    background: rgba(0, 120, 212, 0.6);
    border-color: rgba(0, 120, 212, 0.8);
    color: #ffffff;
}

/* Mission Widgets */
.mission-widget {
    position: absolute;
    width: 300px;
    min-height: 200px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    cursor: move;
    user-select: none;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 1050; /* Apparaître au-dessus des sidebars (z-index: 100) */
}

.mission-widget:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 1);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

.mission-widget.dragging {
    transform: rotate(2deg);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.5);
    z-index: 1051; /* Encore plus élevé quand on déplace le widget */
    transition: none !important;
    backdrop-filter: blur(5px);
}

.mission-widget-header {
    background: rgba(76, 175, 80, 0.9);
    padding: 8px 12px;
    border-radius: 7px 7px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
}

.mission-widget-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission-widget-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s;
}

.mission-widget-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.mission-widget-content {
    padding: 12px;
    color: #cccccc;
}

.mission-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.mission-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mission-info-label {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mission-info-value {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.mission-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.mission-status-indicator.running {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.mission-status-indicator.paused {
    background: #ffc107;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.6);
}

.mission-status-indicator.returning {
    background: #9c27b0;
    box-shadow: 0 0 6px rgba(156, 39, 176, 0.6);
}

.mission-status-indicator.stopped {
    background: #f44336;
    box-shadow: 0 0 6px rgba(244, 67, 54, 0.6);
}

.mission-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.mission-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mission-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
}

.mission-widget-btn {
    background: rgba(62, 62, 66, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mission-widget-btn:hover {
    background: rgba(76, 175, 80, 0.6);
    color: #ffffff;
    border-color: rgba(76, 175, 80, 0.8);
}

.mission-widget-btn.pause-btn {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.mission-widget-btn.pause-btn:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.6);
}

.mission-widget-btn.stop-btn {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.4);
    color: #f44336;
}

.mission-widget-btn.stop-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.6);
}

.mission-widget-btn.rtl-btn {
    background: rgba(156, 39, 176, 0.2);
    border-color: rgba(156, 39, 176, 0.4);
    color: #9c27b0;
}

.mission-widget-btn.rtl-btn:hover {
    background: rgba(156, 39, 176, 0.3);
    border-color: rgba(156, 39, 176, 0.6);
}

.map-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
                linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
                linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.map-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.drone-marker {
    position: absolute;
    color: #0078d4;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.drone-marker:hover {
    color: #ffffff;
    transform: scale(1.2);
}

.drone-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    margin-top: 4px;
}

.waypoint {
    position: absolute;
    color: #4caf50;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.waypoint:hover {
    color: #ffffff;
    transform: scale(1.2);
}

.waypoint-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    margin-top: 4px;
}

.map-minimap {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 100px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #3e3e42;
    border-radius: 6px;
    overflow: hidden;
}

.minimap-viewport {
    width: 100%;
    height: 100%;
    background: #2d2d30;
    position: relative;
}

.minimap-viewport::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border: 2px solid #0078d4;
    background: rgba(0, 120, 212, 0.1);
}

.minimap-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.minimap-area {
    position: absolute;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 2px;
}

.minimap-drone {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00cc00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 2px rgba(0, 204, 0, 0.8);
}

/* Terrain */
.map-terrain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.terrain-area {
    position: absolute;
    border-radius: 8px;
    opacity: 0.6;
}

.terrain-area.forest {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    box-shadow: inset 0 0 20px rgba(45, 80, 22, 0.5);
}

.terrain-area.water {
    background: linear-gradient(135deg, #0066cc 0%, #0080ff 100%);
    box-shadow: inset 0 0 20px rgba(0, 102, 204, 0.5);
    border-radius: 20px;
}

.terrain-area.urban {
    background: linear-gradient(135deg, #4a4a4a 0%, #666666 100%);
    box-shadow: inset 0 0 20px rgba(74, 74, 74, 0.5);
    border-radius: 4px;
}

.terrain-area.mountain {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.5);
    border-radius: 15px;
}

/* Routes */
.road {
    position: absolute;
    background: linear-gradient(rgba(200, 200, 200, 0.3), rgba(150, 150, 150, 0.3));
    z-index: 3;
}

.road.horizontal {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.road.vertical {
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.3);
}

.road.diagonal {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Zones de mission */
.mission-zone {
    position: absolute;
    border: 2px dashed #00ff00;
    border-radius: 8px;
    background: rgba(0, 255, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.mission-zone.alpha {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.mission-zone.bravo {
    border-color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
}

.zone-label {
    color: #00ff00;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.mission-zone.bravo .zone-label {
    color: #ffff00;
}

/* Zones interdites */
.no-fly-zone {
    position: absolute;
    border: 2px solid #ff0000;
    border-radius: 8px;
    background: rgba(255, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.no-fly-zone i {
    color: #ff0000;
    font-size: 16px;
    margin-bottom: 2px;
}

.no-fly-zone.airport i {
    color: #ff8800;
}

.restriction-label {
    color: #ff0000;
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.no-fly-zone.airport {
    border-color: #ff8800;
    background: rgba(255, 136, 0, 0.2);
}

.no-fly-zone.airport .restriction-label {
    color: #ff8800;
}

/* Chemins de mission */
.mission-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
}

.path-segment {
    position: absolute;
    background: linear-gradient(90deg, #00ff00 0%, rgba(0, 255, 0, 0.5) 100%);
    transform-origin: left center;
    box-shadow: 0 0 4px rgba(0, 255, 0, 0.6);
}

/* Améliorations des drones */
.drone-radius {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0, 122, 204, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.drone-marker.active .drone-radius {
    border-color: rgba(0, 204, 0, 0.4);
    animation: radar-sweep 3s infinite;
}

.drone-trail {
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(rgba(0, 204, 0, 0.8), transparent);
    top: 100%;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.drone-marker.active {
    color: #00cc00;
    border: 2px solid #00ff00;
    background: rgba(0, 204, 0, 0.2);
    box-shadow: 0 0 12px rgba(0, 204, 0, 0.7);
    animation: pulse 2s infinite;
}

.drone-marker.returning {
    color: #ff8800;
    border: 2px solid #ffaa00;
    background: rgba(255, 136, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.6);
}

.drone-marker.active .drone-label {
    color: #00cc00;
    border-color: rgba(0, 204, 0, 0.3);
}

/* Améliorations des waypoints */
.waypoint.active {
    color: #00cc00;
    border: 2px solid #00ff00;
    background: rgba(0, 204, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 204, 0, 0.7);
    animation: pulse 2s infinite;
}

.waypoint.active .waypoint-label {
    color: #00cc00;
    border-color: rgba(0, 204, 0, 0.3);
}

/* Cibles radar */
.radar-target {
    position: absolute;
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    z-index: 9;
}

.radar-pulse {
    width: 20px;
    height: 20px;
    border: 2px solid #ff0080;
    border-radius: 50%;
    background: rgba(255, 0, 128, 0.2);
    animation: radar-pulse 2s infinite;
}

.target-id {
    position: absolute;
    top: -25px;
    font-size: 8px;
    color: #ff0080;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 4px;
    border-radius: 2px;
    border: 1px solid rgba(255, 0, 128, 0.3);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes radar-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Telemetry Grid */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.telemetry-card {
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    padding: 20px;
    height: fit-content;
}

.telemetry-card h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 1px solid #3e3e42;
    padding-bottom: 10px;
}

.telemetry-data {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

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

.data-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

/* Console */
.console {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
}

.console-header {
    background: #2d2d30;
    padding: 8px 15px;
    border-bottom: 1px solid #3e3e42;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #cccccc;
}

.console-clear {
    background: none;
    border: none;
    color: #cccccc;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.console-clear:hover {
    background: #3e3e42;
    color: #ffffff;
}

.console-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
    border-radius: 3px;
    margin-bottom: 2px;
}

.log-entry.info {
    color: #4caf50;
}

.log-entry.success {
    color: #2196f3;
}

.log-entry.warning {
    color: #ff9800;
}

.log-entry.error {
    color: #f44336;
}

.timestamp {
    color: #7f7f7f;
    font-size: 10px;
    width: 60px;
    flex-shrink: 0;
}

.level {
    font-weight: 600;
    width: 60px;
    flex-shrink: 0;
}

.message {
    color: #cccccc;
    flex: 1;
}

/* Properties Panel */
.properties-content {
    padding: 15px;
}

.property-group {
    margin-bottom: 20px;
}

.property-group h4 {
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #3e3e42;
}

.property-item {
    margin-bottom: 12px;
}

.property-item label {
    display: block;
    font-size: 11px;
    color: #cccccc;
    margin-bottom: 4px;
}

.property-item input,
.property-item select {
    width: 100%;
    background: #3e3e42;
    border: 1px solid #5a5a5a;
    color: #ffffff;
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s;
}

.property-item input:focus,
.property-item select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.property-item input[readonly] {
    background: #2d2d30;
    color: #7f7f7f;
}

/* Radar Panel */
.radar-content {
    padding: 15px;
}

.radar-display {
    width: 200px;
    height: 200px;
    background: #000;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    margin: auto;
}

.radar-display::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border: 1px solid #4caf50;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.radar-display::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    border: 1px solid #4caf50;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 40%;
    background: linear-gradient(to bottom, #4caf50, transparent);
    transform-origin: bottom center;
    animation: radar-sweep 3s linear infinite;
}

@keyframes radar-sweep {
    0% { transform: translate(-50%, -100%) rotate(0deg); }
    100% { transform: translate(-50%, -100%) rotate(360deg); }
}

.radar-target {
    position: absolute;
    z-index: 10;
}

.target-dot {
    width: 8px;
    height: 8px;
    background: #ff9800;
    border-radius: 50%;
    animation: target-pulse 2s ease-in-out infinite alternate;
}

.target-label {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

@keyframes target-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* Deployed Radars Section */
.deployed-radars-section {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.deployed-radars-section .section-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.deployed-radars-section .section-header h4 {
    color: #ffffff;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.radar-count {
    background: #0078d4;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.deployed-radars-list {
    max-height: 300px;
    overflow-y: auto;
}

.no-radars-message {
    text-align: center;
    padding: 30px 20px;
    color: #888;
}

.no-radars-message i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-radars-message p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #aaa;
}

.no-radars-message small {
    font-size: 11px;
    color: #666;
}

.deployed-radar-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.deployed-radar-item:last-child {
    border-bottom: none;
}

.deployed-radar-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.radar-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.radar-item-name {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
}

.radar-item-type {
    background: rgba(0, 150, 255, 0.2);
    color: #0096ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
}

.radar-item-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    font-size: 10px;
}

.radar-item-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.radar-item-detail-label {
    color: #888;
    min-width: 45px;
}

.radar-item-detail-value {
    color: #ffffff;
    font-weight: 500;
}

.radar-item-actions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.radar-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.radar-action-btn.info {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.4);
    color: #2196f3;
}

.radar-action-btn.info:hover {
    background: rgba(33, 150, 243, 0.3);
}

.radar-action-btn.danger {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

.radar-action-btn.danger:hover {
    background: rgba(231, 76, 60, 0.3);
}

.radar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Track Items (New Radar Format) */
.track-item {
    background: #000;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.track-item:hover {
    background: #3e3e42;
    transform: translateX(2px);
}

.track-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.track-callsign {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.track-id {
    color: #cccccc;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.track-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    font-size: 10px;
}

.track-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.track-detail-label {
    color: #888888;
    font-weight: 500;
    min-width: 35px;
}

.track-detail-value {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.track-position {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.track-position .track-detail-label {
    color: #0078d4;
    font-size: 9px;
}

.track-position .track-detail-value {
    color: #cccccc;
    font-size: 9px;
}





/* Resize Handles */
.resize-handle {
    position: absolute;
    background: transparent;
    z-index: 999;
}

.resize-handle.vertical {
    width: 4px;
    height: 100%;
    top: 0;
    cursor: col-resize;
}

.resize-handle.horizontal {
    width: 100%;
    height: 4px;
    left: 0;
    cursor: row-resize;
}

.resize-handle:hover {
    background: #0078d4;
}

#leftResize {
    right: -2px;
}

#rightResize {
    left: -2px;
}



/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
        min-width: 200px;
    }
    
    .title-bar {
        padding: 0 8px;
    }
    
    .header-left {
        gap: 12px;
    }
    
    .header-tabs {
        padding: 1px;
    }
    
    .header-tab {
        padding: 4px 8px;
        min-width: 60px;
    }
    
    .header-tab span {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        z-index: 100;
        height: 100%;
        transform: translateX(-100%);
    }
    
    .sidebar.expanded {
        transform: translateX(0);
    }
    
    .right-sidebar {
        transform: translateX(100%);
    }
    
    .right-sidebar.expanded {
        transform: translateX(0);
    }
    
    .main-container {
        height: calc(100vh - 35px);
    }
    
    .header-left {
        gap: 8px;
    }
    
    .header-tabs {
        gap: 1px;
    }
    
    .header-tab {
        padding: 4px 6px;
        min-width: 32px;
    }
    
    .header-tab span {
        display: none;
    }
    
    .header-tab i {
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}



/* Utility Classes */
.hidden {
    display: none !important;
}


.no-select {
    user-select: none;
}

.pointer {
    cursor: pointer;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

/* Ajout pour gestion membres groupe */
.group-drones-actions {
    background: #23232a;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.group-drones-actions-label {
    font-size: 11px;
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.group-drones-actions-label i {
    color: #00d4ff;
    font-size: 12px;
}

.group-drones-actions-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.group-multiselect {
    width: 100%;
    max-width: 100%;
    height: 60px;
    border-radius: 4px;
    border: 1px solid #0078d4;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 11px;
    padding: 4px 6px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    font-family: inherit;
    box-sizing: border-box;
}

.group-multiselect option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 2px 4px;
    border: none;
}

.group-multiselect option:checked {
    background: #0078d4;
    color: #ffffff;
}

.add-drones-btn {
    background: linear-gradient(135deg, #0078d4 0%, #00a2e8 100%);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 120, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    height: 36px;
    box-sizing: border-box;
}

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

.add-drones-btn:hover {
    background: linear-gradient(135deg, #005a9e 0%, #0078d4 100%);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.4);
    transform: translateY(-1px);
}

.add-drones-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 120, 212, 0.3);
}

.group-drones-actions .no-available {
    color: #888888;
    font-size: 11px;
    font-style: italic;
    margin-top: 4px;
    padding: 8px 12px;
    background: rgba(136, 136, 136, 0.1);
    border-radius: 4px;
    text-align: center;
}

.group-drone-item .remove-drone-btn {
    background: none;
    border: none;
    color: #f44336;
    font-size: 12px;
    margin-left: auto;
    cursor: pointer;
    border-radius: 3px;
    padding: 2px 6px;
    transition: all 0.2s;
    opacity: 0.7;
}

.group-drone-item .remove-drone-btn:hover {
    background: rgba(244, 67, 54, 0.15);
    opacity: 1;
    transform: scale(1.1);
}

/* Mission Assignment Dialog */
.mission-assignment-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.mission-dialog-content {
    background: #2d2d30;
    border: 1px solid #3e3e42;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Larger dialog for new mission form */
.new-mission-dialog .mission-dialog-content {
    max-width: 600px;
}

.mission-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #3e3e42;
    background: #252526;
}

.mission-dialog-header h4 {
    color: #ffffff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mission-dialog-close {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.mission-dialog-close:hover {
    background: #3e3e42;
    color: #ffffff;
}

.mission-dialog-body {
    padding: 20px;
}

.available-missions h5 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
}

.mission-select-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mission-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    transition: all 0.2s;
}

.mission-select-item:hover {
    background: #2d2d30;
    border-color: #0078d4;
}

.mission-select-item.new-mission {
    border-style: dashed;
    border-color: #4caf50;
}

.mission-select-item.new-mission:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
}

.mission-select-item i {
    font-size: 16px;
    color: #0078d4;
    min-width: 20px;
}

.mission-select-item.new-mission i {
    color: #4caf50;
}

.mission-select-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mission-select-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.mission-select-type {
    color: #cccccc;
    font-size: 12px;
}

.mission-select-btn {
    background: #0078d4;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mission-select-btn:hover {
    background: #005a9e;
}

.mission-select-item.new-mission .mission-select-btn {
    background: #4caf50;
}

.mission-select-item.new-mission .mission-select-btn:hover {
    background: #45a049;
}

/* Group Actions */
.group-actions {
    margin: 12px 0;
}

.group-assign-mission-btn {
    width: 100%;
    background: linear-gradient(135deg, #0078d4 0%, #00a2e8 100%);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 120, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.group-assign-mission-btn:hover {
    background: linear-gradient(135deg, #005a9e 0%, #0078d4 100%);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.4);
    transform: translateY(-1px);
}

.group-assign-mission-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 120, 212, 0.3);
}

.group-assign-mission-btn i {
    font-size: 14px;
}

/* Group Assignment Info */
.group-assignment-info {
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
}

.group-assignment-info p {
    margin: 4px 0;
    color: #cccccc;
    font-size: 12px;
}

.group-assignment-info strong {
    color: #ffffff;
}

.group-assignment-info em {
    color: #888888;
    font-style: italic;
}

/* Mission Actions */
.mission-actions {
    margin: 12px 0;
}

.mission-assign-drones-btn {
    width: 100%;
    background: #3e3e42;
    color: #cccccc;
    border: 1px solid #4e4e52;
    border-radius: 5px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mission-assign-drones-btn:hover {
    background: #4a4a4e;
    color: #ffffff;
    border-color: #5e5e62;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mission-assign-drones-btn:active {
    background: #383838;
    transform: translateY(1px);
}

.mission-assign-drones-btn i {
    font-size: 14px;
}

/* Assignment Tabs */
.assignment-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid #3e3e42;
}

.assignment-tab {
    background: none;
    border: none;
    color: #cccccc;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.assignment-tab:hover {
    background: #3e3e42;
    color: #ffffff;
}

.assignment-tab.active {
    background: #252526;
    color: #ffffff;
    border-bottom-color: #0078d4;
}

.assignment-tab i {
    font-size: 14px;
}

/* Assignment Content */
.assignment-content {
    min-height: 300px;
}

.assignment-tab-content {
    display: none;
}

.assignment-tab-content.active {
    display: block;
}

.assignment-tab-content h5 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
}

.drone-assignment-list,
.group-assignment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.assignment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    transition: all 0.2s;
}

.assignment-item:hover {
    background: #2d2d30;
    border-color: #0078d4;
}

.assignment-item i {
    font-size: 16px;
    color: #0078d4;
    min-width: 20px;
}

.assignment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.assignment-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.assignment-status {
    color: #cccccc;
    font-size: 11px;
}

.assignment-btn {
    background: #0078d4;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.assignment-btn:hover {
    background: #005a9e;
}

/* New Mission Dialog */
.new-mission-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mission-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mission-form-field label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.mission-form-field input,
.mission-form-field textarea,
.mission-form-field select {
    background: #1a1a1a;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 12px;
    font-family: inherit;
}

.mission-form-field input:focus,
.mission-form-field textarea:focus,
.mission-form-field select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.mission-form-field input[readonly] {
    background: #2d2d30;
    color: #cccccc;
    cursor: not-allowed;
}

.mission-form-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Mission Type Selection */
.mission-type-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.mission-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.mission-type-option:hover {
    background: #2d2d30;
    border-color: #0078d4;
}

.mission-type-option.selected {
    background: rgba(0, 120, 212, 0.2);
    border-color: #0078d4;
    color: #ffffff;
}

.mission-type-option i {
    font-size: 16px;
    color: #0078d4;
}

.mission-type-option.selected i {
    color: #ffffff;
}

.mission-type-option span {
    font-size: 10px;
    font-weight: 600;
    color: #cccccc;
}

.mission-type-option.selected span {
    color: #ffffff;
}

/* Form Layout */
.mission-form-row {
    display: flex;
    gap: 12px;
}

.mission-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mission-form-col label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.mission-form-col input,
.mission-form-col select {
    background: #1a1a1a;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 12px;
    font-family: inherit;
}

.mission-form-col input:focus,
.mission-form-col select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

/* Form Actions */
.mission-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #3e3e42;
}

.mission-form-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.mission-form-btn.cancel-btn {
    background: #3e3e42;
    color: #cccccc;
}

.mission-form-btn.cancel-btn:hover {
    background: #5a5a5a;
    color: #ffffff;
}

.mission-form-btn.create-btn {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.mission-form-btn.create-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #4caf50 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
}

.mission-form-btn.create-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
} 

/* Mission Control Buttons Container */
.mission-control-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 10px 0;
    padding: 16px;
    background: rgba(45, 45, 48, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(62, 62, 66, 0.3);
}

/* Secondary buttons container (when mission is running) */
.mission-control-buttons.running {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

/* Individual Mission Control Button */
.mission-control-btn {
    background: rgba(76, 175, 80, 0.8);
    border: none;
    color: #ffffff;
    padding: 12px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-width: 0;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.mission-control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mission-control-btn:active {
    transform: translateY(0);
}

.mission-control-btn i {
    font-size: 11px;
    flex-shrink: 0;
    width: 12px;
    text-align: center;
}

.mission-control-btn span {
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* Launch button - modern full width style */
.mission-control-btn.mission-launch-btn {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    width: 100%;
    min-height: 50px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    border: 2px solid rgba(76, 175, 80, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mission-control-btn.mission-launch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mission-control-btn.mission-launch-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #4caf50 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
    border-color: rgba(76, 175, 80, 0.8);
}

.mission-control-btn.mission-launch-btn:hover::before {
    left: 100%;
}

.mission-control-btn.mission-launch-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.mission-control-btn.mission-launch-btn i {
    font-size: 16px;
}

.mission-control-btn.mission-launch-btn span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Secondary buttons (when mission is running) */
.mission-control-buttons.running .mission-control-btn {
    min-height: 42px;
    max-height: 42px;
    font-size: 11px;
    background: #3e3e42;
    border: 1px solid #4e4e52;
    color: #cccccc;
    width: 100%;
    min-width: 0;
    flex: none;
}

.mission-control-buttons.running .mission-control-btn:hover {
    background: #4a4a4e;
    border-color: #5e5e62;
    color: #ffffff;
}

.mission-control-btn.mission-pause-btn i {
    color: #ffc107;
}

.mission-control-btn.mission-stop-btn i {
    color: #f44336;
}

.mission-control-btn.mission-rtl-btn i {
    color: #9c27b0;
}

.mission-control-btn.mission-rtl-btn:hover {
    background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 100%);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* Disabled state */
.mission-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.mission-control-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Loading animation for buttons */
.mission-control-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mission Launch/Stop Buttons (Legacy) */
.mission-launch-btn, .mission-stop-btn {
    background: rgba(76, 175, 80, 0.8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    transition: all 0.2s ease;
    margin-left: 8px;
    min-width: 130px;
    justify-content: center;
}

.mission-launch-btn:hover {
    background: rgba(76, 175, 80, 1);
    transform: translateY(-1px);
}

.mission-stop-btn {
    background: rgba(244, 67, 54, 0.8);
}

.mission-stop-btn:hover {
    background: rgba(244, 67, 54, 1);
    transform: translateY(-1px);
}

/* Mission Status Display Only */
.mission-status {
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 70px;
    text-align: center;
}

.mission-status.running {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.mission-status.stopped {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.mission-status.ready {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid #2196f3;
}

.mission-status.paused {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.mission-status.returning {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid #9c27b0;
}

/* Mission status indicators - removed duplicate icons */

/* Animation for launching state */
.mission-launch-btn.launching {
    background: rgba(255, 152, 0, 0.8);
    cursor: not-allowed;
}

.mission-launch-btn.launching:hover {
    background: rgba(255, 152, 0, 0.8);
    transform: none;
}



/* Mission Actions Layout */
.mission-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.mission-actions button {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mission-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mission-launch-btn, .mission-stop-btn {
        width: 100%;
        margin-left: 0;
    }
}

/* Logs Panel Styles */
.logs-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.logs-filters {
    padding: 10px;
    border-bottom: 1px solid #3e3e42;
}

.log-filter {
    width: 100%;
    background: #2d2d30;
    color: #cccccc;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
}



.logs-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    padding: 4px 8px;
    margin-bottom: 2px;
    border-radius: 3px;
    border-left: 3px solid transparent;
    background: rgba(45, 45, 48, 0.3);
    transition: background 0.2s ease;
}

.log-entry:hover {
    background: rgba(45, 45, 48, 0.6);
}

.log-timestamp {
    color: #569cd6;
    font-weight: bold;
    margin-right: 10px;
    min-width: 60px;
    font-size: 10px;
}

.log-level {
    margin-right: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
    text-transform: uppercase;
}

.log-level.info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid #2196f3;
}

.log-level.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.log-level.warning {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.log-level.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.log-message {
    flex: 1;
    color: #cccccc;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Log entry type specific styling */
.log-entry.system {
    border-left-color: #569cd6;
}

.log-entry.mission {
    border-left-color: #4caf50;
}

.log-entry.drone {
    border-left-color: #ff9800;
}

.log-entry.comm {
    border-left-color: #9c27b0;
}

.log-entry.error {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

/* Scrollbar styling for logs */
.logs-list::-webkit-scrollbar {
    width: 8px;
}

.logs-list::-webkit-scrollbar-track {
    background: #2d2d30;
}

.logs-list::-webkit-scrollbar-thumb {
    background: #464647;
    border-radius: 4px;
}

.logs-list::-webkit-scrollbar-thumb:hover {
    background: #5a5a5c;
}

/* Auto-scroll to bottom indicator */
.logs-list.auto-scroll::after {
    content: '';
    display: block;
    height: 1px;
}

/* Log entry animation */
.log-entry.new {
    animation: fadeInLog 0.3s ease-in-out;
}

@keyframes fadeInLog {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Log search/filter states */
.log-entry.hidden {
    display: none;
}

.log-entry.highlighted {
    background: rgba(255, 255, 0, 0.1);
    border-left-width: 4px;
}

/* Zone Toolbar Styles */
.zone-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid rgba(62, 62, 66, 0.5);
    padding: 8px 12px;
    gap: 12px;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.zone-toolbar .tool-group {
    display: flex;
    gap: 2px;
    padding: 0;
    border-right: 1px solid rgba(62, 62, 66, 0.3);
    margin-right: 8px;
}

.zone-toolbar .tool-group:last-of-type {
    border-right: none;
    margin-right: 0;
}

.zone-toolbar .mission-tool {
    background: none;
    border: none;
    color: #cccccc;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.zone-toolbar .mission-tool:hover {
    background: rgba(62, 62, 66, 0.8);
    color: #ffffff;
    transform: translateY(-1px);
}

.zone-toolbar .mission-tool.active {
    background: rgba(0, 120, 212, 0.8);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.3);
}

.zone-toolbar .toolbar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    color: #cccccc;
    margin-left: auto;
}

.zone-toolbar .coordinates {
    font-family: 'Courier New', monospace;
    background: rgba(30, 30, 30, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(62, 62, 66, 0.5);
}

.zone-toolbar .scale {
    color: #7f7f7f;
    font-size: 9px;
}

/* Zone-specific toolbar colors */
.zone-1 .zone-toolbar .mission-tool.active {
    background: rgba(76, 175, 80, 0.8);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.zone-2 .zone-toolbar .mission-tool.active {
    background: rgba(255, 193, 7, 0.8);
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.zone-3 .zone-toolbar .mission-tool.active {
    background: rgba(255, 87, 34, 0.8);
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
}

.zone-4 .zone-toolbar .mission-tool.active {
    background: rgba(156, 39, 176, 0.8);
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
}

/* Zone markers styles */
.waypoint-marker-zone {
    background: none !important;
    border: none !important;
}

.home-marker-zone {
    background: none !important;
    border: none !important;
}

/* Floating Toolbar Styles - Google Maps Style */
.floating-toolbar {
    position: absolute;
    top: 30px;
    left: 350px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: left 0.3s ease;
}

/* Positionnement dynamique selon l'état des sidebars */

/* Sidebar gauche fermée : CTAs plus près du bord gauche */
body.left-sidebar-collapsed .floating-toolbar {
    left: 30px;
}

/* Sidebar gauche ouverte (état par défaut) */
body.left-sidebar-expanded .floating-toolbar {
    left: 350px; /* 320px sidebar + 30px espace */
}

/* Ajustements pour différents nombres de zones actives */

/* Mode 1 zone : CTAs centrées */
.map-zones-container.zones-1 .floating-toolbar {
    left: 50%;
    transform: translateX(-50%);
}

/* Mode 2 zones : CTAs à gauche */
.map-zones-container.zones-2 .floating-toolbar {
    left: 25%;
    transform: translateX(-50%);
}

/* Mode 3 zones : CTAs à gauche */
.map-zones-container.zones-3 .floating-toolbar {
    left: 20%;
    transform: translateX(-50%);
}

/* Mode 4 zones : CTAs à gauche */
.map-zones-container.zones-4 .floating-toolbar {
    left: 15%;
    transform: translateX(-50%);
}

/* Mais si sidebar gauche fermée, les CTAs suivent ce positionnement même en mode multi-zones */
body.left-sidebar-collapsed .map-zones-container.zones-1 .floating-toolbar,
body.left-sidebar-collapsed .map-zones-container.zones-2 .floating-toolbar,
body.left-sidebar-collapsed .map-zones-container.zones-3 .floating-toolbar,
body.left-sidebar-collapsed .map-zones-container.zones-4 .floating-toolbar {
    left: 30px;
    transform: none;
}

.floating-toolbar-trigger {
    background: rgb(0 0 0 / 54%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 40px;
    min-height: 40px;
    color: #fff;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.floating-toolbar-trigger:hover {
    background: rgb(0 0 0 / 54%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, 0.2);
}

.floating-toolbar-content {
    background: none;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateX(-20px);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 8px;
}

.floating-toolbar.expanded .floating-toolbar-content,
.floating-toolbar.hover-expanded .floating-toolbar-content {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.floating-tool-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.floating-tool {
    background: rgb(0 0 0 / 54%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(5px);
}

.floating-tool:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.floating-tool.active {
    background: rgba(0, 120, 212, 0.9);
    color: #ffffff;
    border-color: rgba(0, 120, 212, 0.5);
}

.floating-tool:active {
    transform: scale(0.95);
}

/* Main toolbar and zone-specific colors for floating toolbars */
.floating-toolbar.main-toolbar .floating-tool.active {
    background: rgba(0, 120, 212, 0.9);
    color: #ffffff;
    border-color: rgba(0, 120, 212, 0.5);
}

.floating-toolbar.zone-1 .floating-tool.active {
    background: rgba(76, 175, 80, 0.9);
    color: #ffffff;
    border-color: rgba(76, 175, 80, 0.5);
}

.floating-toolbar.zone-2 .floating-tool.active {
    background: rgba(255, 193, 7, 0.9);
    color: #ffffff;
    border-color: rgba(255, 193, 7, 0.5);
}

.floating-toolbar.zone-3 .floating-tool.active {
    background: rgba(255, 87, 34, 0.9);
    color: #ffffff;
    border-color: rgba(255, 87, 34, 0.5);
}

.floating-toolbar.zone-4 .floating-tool.active {
    background: rgba(156, 39, 176, 0.9);
    color: #ffffff;
    border-color: rgba(156, 39, 176, 0.5);
}

/* Coordonnées flottantes en bas à droite */
.map-coordinates {
    position: absolute;
    bottom: 128px;
    right: 330px;
    z-index: 2000;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 10px;
    color: #ffffff;
    background: rgb(0 0 0 / 32%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 110px;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    transition: right 0.3s ease;
}

/* Positionnement dynamique des coordonnées selon l'état de la sidebar droite */

/* Sidebar droite fermée : coordonnées plus près du bord droit */
body.right-sidebar-collapsed .map-coordinates {
    right: 30px;
    bottom: 128px; /* Garder la position avec taskbar */
}

/* Sidebar droite ouverte (état par défaut) */
body.right-sidebar-expanded .map-coordinates {
    right: 330px; /* 300px sidebar + 15px marge + 15px espace */
    bottom: 128px; /* Garder la position avec taskbar */
}

/* Ajustements pour différents nombres de zones actives - coordonnées */

/* Mode 1 zone : coordonnées centrées en bas */
.map-zones-container.zones-1 .map-coordinates {
    right: 50%;
    bottom: 128px; /* Tenir compte de la taskbar */
    transform: translateX(50%);
}

/* Mode 2 zones : coordonnées à droite */
.map-zones-container.zones-2 .map-coordinates {
    right: 25%;
    bottom: 128px; /* Tenir compte de la taskbar */
    transform: translateX(50%);
}

/* Mode 3 zones : coordonnées à droite */
.map-zones-container.zones-3 .map-coordinates {
    right: 20%;
    bottom: 128px; /* Tenir compte de la taskbar */
    transform: translateX(50%);
}

/* Mode 4 zones : coordonnées à droite */
.map-zones-container.zones-4 .map-coordinates {
    right: 15%;
    bottom: 128px; /* Tenir compte de la taskbar */
    transform: translateX(50%);
}

/* Mais si sidebar droite fermée, les coordonnées suivent ce positionnement même en mode multi-zones */
body.right-sidebar-collapsed .map-zones-container.zones-1 .map-coordinates,
body.right-sidebar-collapsed .map-zones-container.zones-2 .map-coordinates,
body.right-sidebar-collapsed .map-zones-container.zones-3 .map-coordinates,
body.right-sidebar-collapsed .map-zones-container.zones-4 .map-coordinates {
    right: 30px;
    bottom: 17px;
    transform: none;
}

/* Styles spécifiques pour la barre d'outils principale */
.floating-toolbar.main-toolbar {
    z-index: 3500 !important;
}

.floating-toolbar.main-toolbar .floating-toolbar-content {
    gap: 4px;
    padding: 0;
}

/* Animations et transitions */
.floating-toolbar-trigger i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-toolbar.expanded .floating-toolbar-trigger i {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .floating-toolbar {
        top: 20px;
        left: 320px;
    }
    
    .map-coordinates {
        bottom: 118px; /* 70px + 48px taskbar */
        right: 320px;
    }
    
    .floating-toolbar-trigger {
        padding: 10px;
        min-width: 40px;
        min-height: 40px;
        font-size: 14px;
    }
    
    .floating-tool {
        min-width: 28px;
        min-height: 28px;
        font-size: 12px;
        padding: 6px;
    }
}

@media (max-width: 768px) {
    .floating-toolbar {
        top: 20px;
        left: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .map-coordinates {
        bottom: 100px; /* 60px + 40px taskbar mobile */
        right: 20px;
    }
    
    .floating-toolbar-trigger {
        border-radius: 8px;
    }
    
    .floating-toolbar-content {
        border-radius: 8px;
        border-left: none;
        flex-direction: column;
        gap: 6px;
        padding: 8px;
        width: 100%;
    }
    
    .floating-tool-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* === TASKBAR SYSTÈME === */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    backdrop-filter: blur(20px);
    z-index: 3000;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 73%;
    margin: auto;
    background: rgb(0 0 0 / 54%);
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    /* box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3); */
    border-radius: 10px;
    margin-bottom: 15px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.taskbar-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.taskbar-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 200px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.taskbar-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.taskbar-item.active {
    background: rgba(0, 120, 212, 0.8);
    border-color: rgba(0, 120, 212, 0.6);
    box-shadow: 0 0 12px rgba(0, 120, 212, 0.4);
}

.taskbar-item i {
    font-size: 16px;
    color: #4caf50;
    flex-shrink: 0;
}

.taskbar-item.active i {
    color: #ffffff;
}

.taskbar-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.taskbar-item-close {
    opacity: 0;
    margin-left: 4px;
    padding: 2px;
    border-radius: 3px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.taskbar-item:hover .taskbar-item-close {
    opacity: 1;
}

.taskbar-item-close:hover {
    background: rgba(255, 255, 255, 0.2);
}



/* Ajustements pour les éléments avec taskbar */
.drone-widget,
.mission-widget {
    margin-bottom: 56px; /* Éviter chevauchement avec taskbar */
}

/* Taskbar se cache automatiquement - plus besoin de padding */

/* Coordonnées restaurées à leur position originale */
.map-coordinates {
    bottom: 80px; /* Position originale restaurée */
}

/* Bouton minimiser dans le header des widgets */
.drone-widget-minimize,
.mission-widget-minimize {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s;
    margin-right: 4px;
    font-size: 14px;
}

.drone-widget-minimize:hover,
.mission-widget-minimize:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333333;
}

/* États des widgets minimisés */
.drone-widget.minimized,
.mission-widget.minimized {
    display: none;
}

@media (max-width: 768px) {
    .taskbar {
        height: 40px;
        padding: 0 8px;
    }
    
    .taskbar-item {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 100px;
        max-width: 150px;
    }
    
    .taskbar-item i {
        font-size: 14px;
    }
    

    
    .drone-widget,
    .mission-widget {
        margin-bottom: 48px;
    }
    
    /* Ajustements mobile pour éviter la taskbar */
    .map-container,
    .leaflet-map,
    .zone-map {
        padding-bottom: 48px; /* Espace pour taskbar mobile */
    }
    
    .map-coordinates {
        bottom: 100px; /* 60px + 40px de taskbar mobile */
    }
}

/* Mission List */
.mission-list {
    padding: 10px;
}

/* Mission Tabs */
.mission-tabs {
    display: flex;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 4px;
    margin: 10px;
    gap: 2px;
}

.mission-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #888888;
    font-size: 10px;
    min-height: 60px;
    justify-content: center;
}

.mission-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #cccccc;
}

.mission-tab.active {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.mission-tab i {
    font-size: 16px;
    margin-bottom: 2px;
}

.mission-tab span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.mission-tab-count {
    background: rgba(76, 175, 80, 0.8);
    color: #ffffff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.mission-tab[data-status="planned"] .mission-tab-count {
    background: rgba(255, 193, 7, 0.8);
}

.mission-tab[data-status="completed"] .mission-tab-count {
    background: rgba(96, 125, 139, 0.8);
}

/* Mission Content */
.mission-content {
    overflow-y: auto;
    max-height: calc(100vh - 300px);
}

.mission-list {
    padding: 0 10px 10px 10px;
    transition: opacity 0.2s ease;
}

.mission-list[style*="display: none"] {
    opacity: 0;
}

/* Mission Progress */
.mission-progress {
    margin-top: 4px;
}

.mission-progress span {
    font-size: 10px;
    color: #4caf50;
    font-weight: 500;
}

.mission-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 2px;
    margin-top: 2px;
    overflow: hidden;
}

.mission-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
}

/* Mission Schedule */
.mission-schedule span {
    font-size: 10px;
    color: #ffc107;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Mission Completion */
.mission-completion {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mission-completion span:first-child {
    font-size: 10px;
    color: #9e9e9e;
    font-weight: 500;
}

.mission-duration {
    font-size: 9px;
    color: #607d8b;
    font-weight: 400;
}

/* Mission Status Updates */
.mission-status.completed {
    background: rgba(96, 125, 139, 0.2);
    color: #607d8b;
}

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

/* Mission Item Completed State */
.mission-item.completed {
    opacity: 0.8;
}

.mission-item.completed .mission-icon {
    opacity: 0.7;
}

.mission-item.completed:hover {
    opacity: 1;
}

/* Empty State */
.mission-list:empty::after {
    content: "Aucune mission dans cette catégorie";
    display: block;
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 40px 20px;
    font-size: 12px;
}

.mission-list[data-status="active"]:empty::after {
    content: "Aucune mission en cours";
}

.mission-list[data-status="planned"]:empty::after {
    content: "Aucune mission planifiée";
}

.mission-list[data-status="completed"]:empty::after {
    content: "Aucune mission terminée";
}

/* Mission Flight Plan Display */
.mission-flight-plan {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #0078d4;
    margin-bottom: 4px;
    font-style: italic;
}

.mission-flight-plan i {
    font-size: 9px;
    color: #0078d4;
}

.mission-flight-plan span {
    color: #888888;
}

/* ================================================
   FLIGHT PLANS STYLES
   ================================================ */

/* Flight Plan Controls */
.flight-plan-controls {
    padding: 15px;
    border-bottom: 1px solid #404040;
    background: rgba(255, 255, 255, 0.02);
}

.search-bar {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #0078d4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.search-input::placeholder {
    color: #888888;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    font-size: 12px;
    pointer-events: none;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    border-radius: 4px;
    color: #cccccc;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555555;
}

.filter-btn.active {
    background: rgba(0, 120, 212, 0.2);
    border-color: #0078d4;
    color: #ffffff;
}

.filter-btn i {
    font-size: 10px;
}

.filter-btn span:not(.filter-count) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Flight Plans List */
.flight-plans-list {
    padding: 10px;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

.flight-plan-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    gap: 0;
    row-gap: 10px;
}

.flight-plan-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.flight-plan-item.active {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.flight-plan-item.draft {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}



/* Flight Plan Info */
.flight-plan-info {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.flight-plan-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flight-plan-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.flight-plan-details span {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #888888;
    white-space: nowrap;
}

.flight-plan-details i {
    font-size: 9px;
    color: #666666;
}

.missions-used {
    font-style: italic;
    color: #4caf50;
    font-weight: 500;
}

.missions-used:first-child {
    margin-right: 4px;
    padding-right: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Flight Plan Status */
.flight-plan-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 8px;
}

.flight-plan-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.flight-plan-status.draft {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.flight-plan-status.archived {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.flight-plan-status.template {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.flight-plan-status i {
    font-size: 10px;
}

/* Flight Plan Actions */
.flight-plan-actions {
    display: flex;
    gap: 3px;
    opacity: 1;
    transition: all 0.2s ease;
    align-items: center;
}

.flight-plan-item:hover .flight-plan-actions {
    opacity: 1;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 4px;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 9px;
    flex-shrink: 0;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.05);
}

.action-btn.primary {
    background: rgba(0, 120, 212, 0.2);
    color: #0078d4;
}

.action-btn.primary:hover {
    background: rgba(0, 120, 212, 0.3);
    color: #ffffff;
}

.action-btn.danger:hover {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Import/Export Section */
.flight-plan-import-export {
    margin: 10px;
    padding: 15px;
    border-top: 1px solid #404040;
    background: rgba(255, 255, 255, 0.02);
}

.import-export-header {
    margin-bottom: 12px;
}

.import-export-header h4 {
    font-size: 12px;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

.import-export-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.import-export-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 120, 212, 0.2);
    border: 1px solid #0078d4;
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.import-export-btn:hover {
    background: rgba(0, 120, 212, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.import-export-btn i {
    font-size: 10px;
}

.format-selection {
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-selection label {
    font-size: 11px;
    color: #cccccc;
    font-weight: 500;
}

.format-selection select {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
    cursor: pointer;
}

.format-selection select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.format-selection option {
    background: #2d2d30;
    color: #ffffff;
}

/* Empty State for Flight Plans */
.flight-plans-list:empty::after {
    content: "Aucun plan de vol disponible";
    display: block;
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 40px 20px;
        font-size: 12px;
    }

/* Responsive */
@media (max-width: 1200px) {
    .import-export-actions {
        flex-direction: column;
}

    .flight-plan-details {
        flex-direction: column;
        gap: 2px;
    }
}

/* === Flight Plans Styles === */
.flight-plans-list {
    overflow-y: auto;
}

.flight-plan-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.flight-plan-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 172, 254, 0.3);
    transform: translateY(-1px);
}

.flight-plan-item.selected {
    background: rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.5);
}





.flight-plan-import-export {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
}

.import-export-header {
    margin-bottom: 12px;
}

.import-export-header h4 {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
}

.import-export-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.import-export-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(79, 172, 254, 0.2);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 6px;
    color: #4facfe;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
        justify-content: center;
    gap: 6px;
}

.import-export-btn:hover {
    background: rgba(79, 172, 254, 0.3);
    border-color: rgba(79, 172, 254, 0.5);
    transform: translateY(-1px);
}

.format-selection {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.format-selection label {
    color: rgba(255, 255, 255, 0.7);
}

.format-selection select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 12px;
}

.format-selection select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* === Mission Modal Styles === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

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

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

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(79, 172, 254, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.flight-plan-preview {
    margin-top: 8px;
    padding: 12px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 6px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #4facfe;
    font-weight: 600;
    font-size: 14px;
}

.preview-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #00b8d4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* === Flight Plan Assignment Modal === */
.assignment-info {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 8px;
}

.flight-plan-info h4 {
    margin: 0 0 8px 0;
    color: #4facfe;
    font-size: 16px;
}

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

.assignment-section {
    margin-bottom: 24px;
}

.assignment-section h4 {
    margin: 0 0 12px 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.missions-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.mission-assignment-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mission-assignment-item:last-child {
    border-bottom: none;
}

.mission-assignment-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mission-assignment-item.assigned {
    background: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #2ecc71;
}

.mission-assignment-icon {
    width: 32px;
    height: 32px;
    background: rgba(79, 172, 254, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #4facfe;
    font-size: 14px;
}

.mission-assignment-info {
    flex: 1;
}

.mission-assignment-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    font-size: 14px;
}

.mission-assignment-type {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.assignment-action {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

.assignment-action.assign {
    color: #2ecc71;
}

.assignment-action.unassign {
    color: #e74c3c;
}

/* Empty list messages */
.empty-list {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.missions-list .empty-list {
    padding: 15px;
    font-size: 14px;
}

/* Mission Control Panel */
.mission-control-panel {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 8px;
    margin: 8px 0;
    padding: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.mission-control-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.mission-control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 16px;
    background: rgba(79, 172, 254, 0.1);
    border-bottom: 1px solid rgba(79, 172, 254, 0.2);
}

.mission-control-header h4 {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.mission-control-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mission-control-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mission-control-content {
    padding: 16px;
}

.mission-control-info {
    margin-bottom: 16px;
}

.mission-control-detail {
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.mission-control-detail strong {
    color: #ffffff;
    margin-right: 8px;
}

.mission-control-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mission-control-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
        font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
        min-width: 100px;
    justify-content: center;
}

.mission-control-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mission-control-btn.launch-btn {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #ffffff;
}

.mission-control-btn.launch-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #43a047 0%, #5cb85c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.mission-control-btn.edit-btn {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.mission-control-btn.edit-btn:hover:not(:disabled) {
    background: rgba(255, 193, 7, 0.3);
    color: #ffffff;
}

.mission-control-btn.pause-btn {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.mission-control-btn.pause-btn:hover:not(:disabled) {
    background: rgba(255, 152, 0, 0.3);
    color: #ffffff;
}

.mission-control-btn.stop-btn {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.mission-control-btn.stop-btn:hover:not(:disabled) {
    background: rgba(244, 67, 54, 0.3);
    color: #ffffff;
}

.mission-control-btn.rtl-btn {
    background: rgb(255 0 0 / 0%);
    color: #ffffff;
    border: 1px solid rgb(255 255 255);
}

.mission-control-btn.rtl-btn:hover:not(:disabled) {
    background: rgba(156, 39, 176, 0.3);
    color: #ffffff;
}

.mission-control-btn.info-btn {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.mission-control-btn.duplicate-btn {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.mission-control-btn.duplicate-btn:hover:not(:disabled) {
    background: rgba(79, 172, 254, 0.3);
    color: #ffffff;
}

.mission-item.selected {
    background: rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .mission-control-actions {
        flex-direction: column;
    }
    
    .mission-control-btn {
        flex: none;
        min-width: auto;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== AMÉLIORATION DES BOUTONS WIDGET MISSION ===== */

/* Bouton Arrêter - Gris neutre */
.mission-widget-btn.stop-btn {
    background: linear-gradient(135deg, #757575 0%, #616161 100%) !important;
    border: 1px solid #757575 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(117, 117, 117, 0.4) !important;
}

.mission-widget-btn.stop-btn:hover {
    background: linear-gradient(135deg, #616161 0%, #424242 100%) !important;
    border-color: #616161 !important;
    box-shadow: 0 4px 12px rgba(117, 117, 117, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* Bouton Retour Base - Gris neutre */
.mission-widget-btn.rtl-btn {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%) !important;
    border: 1px solid #9e9e9e !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(158, 158, 158, 0.4) !important;
}

.mission-widget-btn.rtl-btn:hover {
    background: linear-gradient(135deg, #757575 0%, #616161 100%) !important;
    border-color: #757575 !important;
    box-shadow: 0 4px 12px rgba(158, 158, 158, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* Bouton Détails - Vert sombre */
.mission-widget-btn:not(.stop-btn):not(.rtl-btn) {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%) !important;
    border: 1px solid #388e3c !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.4) !important;
}

.mission-widget-btn:not(.stop-btn):not(.rtl-btn):hover {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%) !important;
    border-color: #2e7d32 !important;
    box-shadow: 0 4px 12px rgba(56, 142, 60, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* Amélioration générale des boutons widget mission */
.mission-widget-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    min-height: 36px !important;
}

.mission-widget-btn i {
    font-size: 12px !important;
    margin-right: 6px !important;
}

.mission-widget-btn span {
    font-weight: 600 !important;
    font-size: 11px !important;
}

/* === DEFENSE BATTERIES SYSTEM STYLES === */

/* Battery Selection Modal */
.battery-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.battery-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid rgba(0, 120, 212, 0.5);
    border-radius: 12px;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.battery-modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 18px;
}

.battery-modal-close {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.battery-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Battery Options */
.battery-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.battery-option {
    background: rgba(62, 62, 66, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.battery-option:hover {
    border-color: rgba(0, 120, 212, 0.5);
    background: rgba(62, 62, 66, 0.7);
    transform: translateY(-2px);
}

.battery-option.selected {
    border-color: rgba(0, 120, 212, 0.8);
    background: rgba(0, 120, 212, 0.2);
    box-shadow: 0 0 15px rgba(0, 120, 212, 0.3);
}

.battery-option .battery-info h4 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

.battery-option .battery-info p {
    color: #cccccc;
    margin: 6px 0;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

.battery-option .battery-desc {
    color: #999999 !important;
    font-style: italic;
    font-size: 11px !important;
    margin-top: 8px !important;
}

.battery-option .battery-count {
    position: absolute;
    top: 5px;
    right: 8px;
    background: rgba(0, 120, 212, 0.8);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: bold;
}

/* Modal Footer */
.battery-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.battery-stats p {
    color: #cccccc;
    margin: 4px 0;
    font-size: 12px;
}

.battery-stats span {
    color: #ffffff;
    font-weight: bold;
}

.battery-controls {
    display: flex;
    gap: 10px;
}

.battery-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.battery-btn.primary {
    background: rgba(0, 120, 212, 0.8);
    color: #ffffff;
}

.battery-btn.primary:hover {
    background: rgba(0, 120, 212, 1);
    transform: translateY(-1px);
}

.battery-btn.secondary {
    background: rgba(255, 193, 7, 0.8);
    color: #000000;
}

.battery-btn.secondary:hover {
    background: rgba(255, 193, 7, 1);
    transform: translateY(-1px);
}

/* Squadron Markers on Map */
.squadron-marker-container {
    background: transparent !important;
    border: none !important;
}

.squadron-marker {
    background: rgba(74, 144, 226, 0.85);
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    min-width: 60px;
}

.squadron-marker .squadron-icon {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 2px;
}

.squadron-marker .squadron-label {
    font-size: 8px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

/* Battery Popup */
.battery-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.battery-popup h4 {
    margin: 0 0 10px 0;
    color: #333333;
    font-size: 14px;
}

.battery-popup p {
    margin: 5px 0;
    font-size: 11px;
    color: #666666;
}

.battery-remove-btn {
    background: rgba(244, 67, 54, 0.8);
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    margin-top: 8px;
    transition: all 0.2s;
}

.battery-remove-btn:hover {
    background: rgba(244, 67, 54, 1);
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Squadron range circles animation on hover */
.squadron-marker:hover {
    transform: scale(1.1);
    z-index: 1000;
}

/* Responsive Design for Battery Modal */
@media (max-width: 768px) {
    .battery-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .battery-options {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .battery-modal-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .battery-controls {
        justify-content: center;
    }
}

/* === INTELLIGENT COVERAGE VISUALIZATION === */

/* Coverage Zone Popups */
.coverage-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 180px;
}

.coverage-popup h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.coverage-popup p {
    margin: 0;
    font-size: 11px;
    color: #666666;
    line-height: 1.4;
}

/* Enhanced Zone Styles */
.leaflet-interactive[stroke="#00ff00"] {
    stroke-dasharray: 5, 5;
    animation: coverageGlow 2s ease-in-out infinite alternate;
}

.leaflet-interactive[stroke="#ff0000"] {
    stroke-dasharray: 3, 3;
    animation: vulnerabilityPulse 1.5s ease-in-out infinite;
}

/* Coverage Animations */
@keyframes coverageGlow {
    from {
        stroke-opacity: 0.6;
        fill-opacity: 0.3;
    }
    to {
        stroke-opacity: 1;
        fill-opacity: 0.5;
    }
}

@keyframes vulnerabilityPulse {
    0%, 100% {
        stroke-opacity: 0.4;
        fill-opacity: 0.2;
    }
    50% {
        stroke-opacity: 0.8;
        fill-opacity: 0.4;
    }
}

/* Coverage Status Indicator */
.coverage-status {
    position: absolute;
    top: 120px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 2000;
    min-width: 200px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.coverage-status h5 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.coverage-legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.coverage-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
}

.coverage-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.coverage-legend-color.covered {
    background: #00ff00;
}

.coverage-legend-color.uncovered {
    background: #ff0000;
}

.coverage-legend-color.protected {
    background: #ff4444;
}

/* Suppression des anciens styles du bouton pause */
.mission-widget-btn.pause-btn {
    display: none !important;
}

/* Waypoint markers styles */
.waypoint-marker {
    pointer-events: auto !important;
}

.waypoint-marker:hover div {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

.waypoint-marker div {
    transition: transform 0.2s ease;
}

/* Animation de clignotement pour les marqueurs */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.leaflet-marker-icon.blink {
    animation: blink 0.5s ease-in-out 4;
}

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

/* Deployed Radars Styles */
.deployed-radars-section {
    margin-top: 15px;
    border-top: 1px solid rgba(76, 175, 80, 0.3);
    /* padding-top: 15px; */
}

/* Radar Details Styles pour les onglets */
.radar-details-item {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #2196f3;
}

.radar-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.radar-details-name {
    color: #2196f3;
    font-weight: 600;
    font-size: 14px;
}

.radar-details-type {
    background: rgba(33, 150, 243, 0.2);
    color: #90caf9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.radar-details-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.radar-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.radar-detail-label {
    color: #90caf9;
    font-size: 12px;
    font-weight: 500;
}

.radar-detail-value {
    color: #e3f2fd;
    font-size: 12px;
    font-weight: 600;
}

.radar-position {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(33, 150, 243, 0.2);
}

/* Tab Close Button */
.tab-close-btn {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 5px;
    font-size: 10px;
}

.tab-close-btn:hover {
    background: rgba(244, 67, 54, 0.4);
    border-color: #f44336;
}

.sidebar-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Radar Tab Sections */
.radar-details-section,
.radar-display-section,
.radar-tracks-section {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.radar-details-section h4,
.radar-display-section h4,
.radar-tracks-section h4 {
    color: #4caf50;
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    padding-bottom: 8px;
}

.radar-display-section .radar-display {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    background: 
        radial-gradient(circle, transparent 20%, rgba(76, 175, 80, 0.1) 20.5%, rgba(76, 175, 80, 0.1) 40%, transparent 40.5%),
        radial-gradient(circle, transparent 60%, rgba(76, 175, 80, 0.1) 60.5%, rgba(76, 175, 80, 0.1) 80%, transparent 80.5%),
        conic-gradient(from 0deg, transparent 0deg, rgba(76, 175, 80, 0.2) 90deg, transparent 180deg);
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.radar-tracks-section .radar-list {
    max-height: 700px;
    overflow-y: auto;
}

.radar-tracks-section .track-item {
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 8px;
}

.radar-tracks-section .track-item:hover {
    background: rgba(255, 255, 255, 0.1);
}