/**
 * Surgicise - Custom CSS
 */

/* Custom Colors */
:root {
    --primary-color: #4e73df;
    --secondary-color: #6c757d;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    background-color: #000;
}

.thumbnail-container {
    transition: all 0.3s ease;
}

.thumbnail-container:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.play-icon {
    opacity: 0.9;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    border-radius: 50%;
    height: 3em;
    width: 3em;
    line-height: 3em;
    margin-top: -1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-container:hover .play-icon {
    opacity: 1;
    transform: scale(1.1);
    background-color: var(--primary-color);

}


.confidence-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.confidence-high { background-color: #1cc88a; }
.confidence-medium { background-color: #f6c23e; }
.confidence-low { background-color: #e74a3b; }

/* Cards and Box Shadows */
.card {
    transition: all 0.2s;
    border-radius: 0.5rem;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08) !important;
}

/* Video Phase Badges */
.phase-badge {
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
    color: #fff;
    display: inline-block;
    background-color: #000000;
}

/* Phase Colors */
.capsulorhexis { background-color: #4e73df; }
.phaco { background-color: #1cc88a; }
.iol { background-color: #f6c23e; }
.incision { background-color: #e74a3b; }
.irrigation { background-color: #36b9cc; }
.custom { background-color: #5a5c69; }


.time-slider-container {
    background: #f0f0f0;
    border-radius: 0 0 10px 10px ;
    padding: 15px;
    margin-bottom: 0px;
}


/* Phase Timeline */
.phase-timeline {
    position: relative;
    height: 35px;
    background-color: #f8f9fc;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
    padding: 10px 0;
    border: #f8f9fc 5px solid;
}

.phase-segment {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s;
    cursor: pointer;
    opacity: .8;
}

.phase-segment:hover {
    opacity: 1;
}


/* Video player customizations */
.video-container {
    position: relative;
    background-color: #00000000;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    height: 0;
    padding-bottom: 56%; /* 16:9 aspect ratio */
    margin: 0 auto 5px;
    max-width: 100%;
    border: 0px solid #ffffff;
    transition: transform 0.3s ease;
}
    
.video-container .video-js {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

/* Custom VideoJS styling */
.vjs-theme-city {
    --vjs-theme-city--primary: #4e73df;
}

.video-js .vjs-control-bar {
    opacity: 1;
    visibility: hidden;
    display: none;
}

.video-js .vjs-big-play-button {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: white;
    border-radius: 50%;
    height: 2em;
    width: 2em;
    line-height: 2em;
    margin-top: -1em;
    margin-left: -1em;
}

.video-js:hover .vjs-big-play-button {
    background-color: var(--primary-color);
}

/* Analysis Results Display */
.result-metric {
    position: relative;
    height: 100px;
    width: 100px;
    margin: 0 auto;
}

.result-metric canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.result-metric-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
}

/* HIPAA Compliance Indicator */
.hipaa-compliant-badge {
    background-color: #1cc88a;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}


.phase-segment {
        position: absolute;
        height: 100%;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s;
        z-index: 1;
    }
    .phase-segment:hover {
        filter: brightness(1.1);
        z-index: 100;
    }
/* Responsive adjustments */
@media (max-width: 768px) {
    .result-metric {
        height: 80px;
        width: 80px;
    }
    
    .result-metric-value {
        font-size: 1.2rem;
    }
}
