:root {
    --primary-color: #2c3e50;
    --secondary-color: #2f8b45;
    --hover-color: #2980b9;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.btn-primary {
    background-color: var(--secondary-color);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
    background-color: var(--hover-color);
}

.session-timeline {
    overflow-x: auto;
    padding-bottom: 1rem;
}

.session-card {
    min-width: 300px;
    margin: 0 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: 70vh;
    position: relative;
}

.comparison-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary-color);
    cursor: col-resize;
    z-index: 100;
}

.image-scroll {
    overflow-y: auto;
    height: 100%;
    border-radius: 10px;
}

.camera-preview {
    position: relative;
    background: #2c3e50;
    border-radius: 10px;
    overflow: hidden;
}

#cameraFeed {
    width: 100%;
    height: auto;
}

.tag-pill {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.25rem;
}

@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .comparison-divider {
        display: none;
    }
}

/* Dashboard Specific Styles */
.chart-container {
    position: relative;
    width: 100%;
    height: auto;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.badge-photo-count {
    font-size: 0.9rem;
    padding: 0.4em 0.7em;
}

.quick-action-btn {
    transition: transform 0.2s;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
}

/**-- updated upload css--**/
.camera-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#cameraFeed {
    width: 100%;
    height: auto;
}

.capture-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.file-item {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}
/***Camera Style***/
.camera-container video {
    object-fit: contain;
    background: #000;
}

.preview-item {
    transition: transform 0.2s;
}

.preview-item:hover {
    transform: translateX(5px);
}

.file-preview-container.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

/* Enhanced Preview Items */
.preview-item {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #dee2e6;
}

.preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.thumbnail-preview {
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.dragover {
    border: 2px dashed #0d6efd !important;
    background: rgba(13, 110, 253, 0.05);
}

#fetchSessionsBtn:hover {
    background: #e9ecef;
}
/** Additional CSS- **/
.split-view {
    transition: all 0.3s ease;
}
.file-preview-container {
    min-height: 300px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
}
.upload-section h5 {
    color: #2c3e50;
    font-weight: 600;
}
/**.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}**/