/* Professional Apple-Inspired Design */
:root {
    --primary-color: #0071e3;
    --secondary-color: #5e5ce6;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --glass-bg: rgba(22, 22, 24, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #2997ff;
    --success-color: #30d158;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #000;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Scroll Content */
.scroll-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.spacer-section {
    height: 100vh;
    width: 100%;
    pointer-events: none;
}

.content-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
}

.glass-panel {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-content p {
    font-size: 21px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 40px;
}

.stats-row {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Home Page Styles */
.home-page {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#earthCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Navigation */
.navbar-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-home {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    opacity: 0.9;
}

/* HUD Container */
.hud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-container.fade-out {
    opacity: 0;
}

/* Glassmorphism Panels */
.hud-panel {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hud-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.hud-panel.right-panel {
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 320px;
}

.panel-header {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Typography */
.info-title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.info-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.feature-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s;
}

.feature-item:hover {
    color: var(--text-primary);
}

.feature-icon {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 10px;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.status-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.status-number {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.status-desc {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
}

/* System Status */
.system-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(48, 209, 88, 0.1);
    border-radius: 12px;
    margin-top: 12px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    background: var(--success-color);
    box-shadow: 0 0 10px rgba(48, 209, 88, 0.4);
}

.status-text {
    color: var(--success-color);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Main CTA Button */
.home-main {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 60;
}

.scan-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.scan-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.button-icon {
    color: var(--text-primary);
    font-size: 18px;
}

.button-text {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.button-subtext {
    display: none;
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Authentication Pages */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: radial-gradient(circle at center, #0a1628 0%, #000000 100%);
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.1);
}

/* Fix for white background in dropdowns */
select option {
    background-color: #161618;
    color: var(--text-primary);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 11px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0077ed;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff453a;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
    min-height: 20px;
}

.status-message {
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
    min-height: 20px;
    padding: 10px;
    border-radius: 6px;
}

.status-message.error {
    color: #ff453a;
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.status-message.success {
    color: #30d158;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.auth-subtitle {
    color: #8e8e93;
    margin-bottom: 20px;
    text-align: center;
}

/* Enhanced Content Styles */
.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(41, 151, 255, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(41, 151, 255, 0.2);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon-large {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.architecture-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    padding: 0 20px;
}

.arch-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-num {
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: -20px;
}

.step-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.arch-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
    margin: 0 20px;
}

.center-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-wrapper {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .architecture-diagram {
        flex-direction: column;
        gap: 30px;
    }
    
    .arch-line {
        width: 2px;
        height: 50px;
    }
}

/* Animation Overlays */
.scan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    background: rgba(0, 255, 255, 0.05);
    transition: opacity 0.3s;
}

.scan-overlay.active {
    opacity: 1;
}

.scan-line {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 10%;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 255, 0.8), transparent);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.scan-overlay.active .scan-line {
    animation: scanDown 1.5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes scanDown {
    0% { top: -10%; }
    100% { top: 110%; }
}

.cyberpunk-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: transparent;
    mix-blend-mode: hard-light;
}

.cyberpunk-filter.active {
    animation: cyberpunkGlitch 0.5s steps(5) forwards;
    animation-delay: 1.2s; /* Start after scan is mostly done */
}

@keyframes cyberpunkGlitch {
    0% {
        opacity: 0;
        background: rgba(255, 0, 0, 0.2);
        transform: translateX(0);
        filter: hue-rotate(0deg) contrast(1.2);
    }
    20% {
        opacity: 1;
        background: rgba(0, 255, 255, 0.2);
        transform: translateX(-5px);
        filter: hue-rotate(90deg) contrast(2);
    }
    40% {
        opacity: 0.8;
        background: rgba(0, 0, 255, 0.2);
        transform: translateX(5px);
        filter: hue-rotate(180deg) invert(0.1);
    }
    60% {
        opacity: 1;
        background: rgba(255, 255, 0, 0.2);
        transform: translateX(-2px);
        filter: hue-rotate(270deg) contrast(1.5);
    }
    80% {
        opacity: 0.9;
        background: rgba(255, 0, 255, 0.2);
        transform: translateX(2px);
        filter: hue-rotate(0deg) invert(0);
    }
    100% {
        opacity: 1;
        background: #000; /* Fade to black at the end */
        transform: translateX(0);
    }
}

/* Dashboard Styles */
.dashboard-container {
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-container h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dashboard-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.user-info p {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 15px;
}

.user-info strong {
    color: var(--text-primary);
    font-weight: 500;
    margin-right: 8px;
}

.api-response {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;
    font-size: 13px;
    color: var(--success-color);
    min-height: 60px;
    white-space: pre-wrap;
    word-break: break-all;
}

.quick-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.quick-links li a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-links li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.2s;
    margin: 0 10px;
}

.profile-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    transform: scale(1.05);
}

/* =====================================================
   DRONE SESSIONS MANAGEMENT STYLES
   ===================================================== */

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: rgba(30, 30, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Session Cards */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.session-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-info h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.session-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
}

.session-status.status-created,
.session-status.status-idle {
    background: rgba(134, 134, 139, 0.2);
    color: #86868b;
}

.session-status.status-active,
.session-status.status-running {
    background: rgba(48, 209, 88, 0.2);
    color: #30d158;
}

.session-status.status-paused {
    background: rgba(255, 159, 10, 0.2);
    color: #ff9f0a;
}

.session-status.status-ended,
.session-status.status-closed {
    background: rgba(255, 69, 58, 0.2);
    color: #ff453a;
}

.session-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.session-description {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.session-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Drone Cards in Details */
.drones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.drone-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}

.drone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.drone-name {
    font-weight: 600;
    font-size: 1em;
}

.drone-type {
    font-size: 0.75em;
    color: var(--accent-color);
    background: rgba(41, 151, 255, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
}

.drone-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.connected {
    background: #30d158;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.5);
}

.status-indicator.disconnected {
    background: #86868b;
}

.drone-actions {
    display: flex;
    gap: 8px;
}

/* Detail Sections */
.session-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.detail-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    color: var(--text-secondary);
}

.detail-row code {
    font-family: 'SF Mono', monospace;
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.75em;
}

.btn-danger {
    background: rgba(255, 69, 58, 0.2);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 69, 58, 0.3);
}

/* Notifications */
.notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(30, 30, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    animation: slideIn 0.3s ease;
}

.notification button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.notification-success {
    border-color: rgba(48, 209, 88, 0.3);
}

.notification-success span {
    color: #30d158;
}

.notification-error {
    border-color: rgba(255, 69, 58, 0.3);
}

.notification-error span {
    color: #ff453a;
}

.notification-info {
    border-color: rgba(41, 151, 255, 0.3);
}

.notification-info span {
    color: #2997ff;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Connection Fields Animation */
.connection-fields {
    animation: fadeIn 0.3s ease;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Improvements */
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group select option {
    background: #1e1e20;
    color: var(--text-primary);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

/* Responsive adjustments for drone sessions */
@media (max-width: 768px) {
    .session-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .session-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .session-actions {
        width: 100%;
    }
    
    .session-actions .btn {
        flex: 1;
        text-align: center;
    }
    
    .session-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .drones-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
    }
}
