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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1a202c;
    line-height: 1.6;
    font-size: 14px;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(90deg, #2d3748 0%, #4b6c9e 100%);  
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 3px solid #3182ce;
    height: 90px;
    display: flex;
    align-items: center;
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3182ce, #63b3ed);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.brand-text h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.025em;
}

.brand-text {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 0.25rem;
    font-weight: 400;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: -0.55rem;
    margin-bottom: 0.55rem;
    font-weight: 400;
}

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

.company-logo img {
    height: 160px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Duplicate removed - company-logo img already defined above */


.header-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.system-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Main Layout - Full Screen */
.container {
    display: grid;
    grid-template-columns: 420px 1fr 380px;
    height: 100vh;
    padding-top: 90px; /* Account for fixed header */
    gap: 0;
}

/* Left Sidebar - Control Panel */
.control-panel {
    background: white;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    z-index: 50;
}

/* Center Content Area */
.main-content {
    flex: 1;
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Right Sidebar - Initially Hidden, shown in labeling mode */
.right-sidebar {
    background: white;
    border-left: 1px solid #e2e8f0;
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0,0,0,0.08);
    z-index: 50;
    padding: 1.5rem;
    display: none;
}

/* Labeling section styles in right sidebar */
.right-sidebar .labeling-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.right-sidebar .labeling-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.right-sidebar .labeling-section h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.right-sidebar .labeling-section h3 i {
    color: #3182ce;
    font-size: 0.8rem;
}

/* Show right sidebar when in labeling mode */
body.labeling-mode .right-sidebar {
    display: block;
}

/* Adjust grid when labeling mode is active */
body.labeling-mode .container {
    grid-template-columns: 420px 1fr 380px;
}

/* Remove duplicate - already defined above */

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}