/* Scoped Wrapper: .slpc-wrapper 
   Ensures styles do not bleed out or get affected by theme resets.
*/

.slpc-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: 'Manrope', sans-serif;
}

.slpc-wrapper * { 
    box-sizing: border-box; 
}

/* App Specific Layouts */
.slpc-wrapper .view-container { 
    flex: 1; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
}

.slpc-wrapper .view-section { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    transition: opacity 0.3s ease, transform 0.3s ease; 
    background-color: inherit; 
}

.slpc-wrapper .view-hidden { 
    opacity: 0; 
    pointer-events: none; 
    transform: translateX(20px); 
}

.slpc-wrapper .view-active { 
    opacity: 1; 
    pointer-events: auto; 
    transform: translateX(0); 
}

.slpc-wrapper .scroll-content { 
    flex: 1; 
    overflow-y: auto; 
    overflow-x: hidden; 
}

/* Hide scrollbars for cleaner look */
.slpc-wrapper .no-scrollbar::-webkit-scrollbar { display: none; }
.slpc-wrapper .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Modal Overlay */
.slpc-wrapper .modal-overlay {
    position: absolute; /* Changed from fixed to absolute to stay inside app wrapper */
    inset: 0; 
    background: rgba(0,0,0,0.5); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 100; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.slpc-wrapper .modal-overlay.open { opacity: 1; pointer-events: auto; }

.slpc-wrapper .modal-card {
    background: white; width: 90%; max-width: 400px; 
    border-radius: 20px; padding: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(20px); transition: transform 0.3s;
}
.dark .slpc-wrapper .modal-card { background: #1c2e2b; }
.slpc-wrapper .modal-overlay.open .modal-card { transform: translateY(0); }

/* Timeline Styles */
.slpc-wrapper .timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
}
.slpc-wrapper .timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: 12px;
}
.slpc-wrapper .timeline-dot {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.slpc-wrapper .session-card {
    transition: all 0.2s ease;
}
.slpc-wrapper .session-card:hover {
    transform: translateX(4px);
}
.slpc-wrapper .type-toggle {
    cursor: pointer;
    transition: all 0.15s ease;
}
.slpc-wrapper .type-toggle:hover {
    opacity: 0.8;
}
.slpc-wrapper .type-toggle:active {
    transform: scale(0.98);
}

/* Time Input override */
.slpc-wrapper input[type="time"] {
    font-family: "Manrope", sans-serif;
}
.slpc-wrapper input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
}

/* Screenshot Capture Area - Fixed Sizes (not responsive) */
#square-capture-content .sq-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#square-capture-content .sq-value {
    font-size: 26px;
    font-weight: 700;
}