/* Pin Sessions Common CSS */
.container-fluid { 
    padding: 40px 20px; 
    background: #f8f9fa; 
    min-height: 100vh; 
}

.session-card { 
    background: #f8f9fa; 
    border: 1px solid #e9ecef; 
    border-radius: 8px; 
    padding: 20px; 
    margin-bottom: 15px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    min-height: 200px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.session-title { 
    font-size: 0.9rem; 
    font-weight: 500; 
    margin-bottom: 10px; 
    color: #333; 
    line-height: 1.3; 
    height: 2.6em; 
    display: flex; 
    align-items: center; 
}

.create-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.category-header { 
    border-left: 4px solid; 
    padding-left: 1rem; 
    margin-bottom: 1rem; 
}

.category-section { 
    background: white; 
    padding: 30px; 
    border-radius: 8px; 
    margin-bottom: 35px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

.category-section:nth-child(1) { background: #f0f8ff; }
.category-section:nth-child(1) .category-header { color: #0066cc; }

.category-section:nth-child(2) { background: #f0f8f0; }
.category-section:nth-child(2) .category-header { color: #28a745; }

.category-section:nth-child(3) { background: #fff8f0; }
.category-section:nth-child(3) .category-header { color: #fd7e14; }

.category-section:nth-child(4) { background: #fffbf0; }
.category-section:nth-child(4) .category-header { color: #ffc107; }

.category-section:nth-child(5) { background: #fff0f8; }
.category-section:nth-child(5) .category-header { color: #e83e8c; }

#sessionsContent { 
    border: 1px solid #e9ecef; 
    border-radius: 8px; 
    padding: 20px; 
    background: white; 
}

.controls-container { 
    background: white; 
    border: 1px solid #e9ecef; 
    border-radius: 8px; 
    padding: 20px; 
    margin-bottom: 25px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}

/* Mobile Optimizations - Pin pages only */
@media (max-width: 1199px) {
    /* Pin page specific mobile styles - only target main content area */
    main .session-card,
    #sessionsContent .session-card {
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 8px;
        background: white;
    }
    
    main .mobile-session-item,
    #sessionsContent .mobile-session-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 8px;
        background: white;
    }
    
    main .mobile-session-content,
    #sessionsContent .mobile-session-content {
        flex: 1;
    }
    
    main .mobile-session-actions,
    #sessionsContent .mobile-session-actions {
        margin-left: 12px;
    }
    
    main .category-section,
    #sessionsContent .category-section {
        margin-bottom: 20px;
    }
    
    main .collapse-toggle,
    #sessionsContent .collapse-toggle {
        cursor: pointer;
        user-select: none;
    }
    
    .controls-container .w-100 {
        width: 100% !important;
    }
}

/* Desktop styles */
@media (min-width: 1200px) {
    main .mobile-view,
    #sessionsContent .mobile-view { 
        display: none; 
    }
    
    .controls-container .w-md-auto { 
        width: auto !important; 
    }
}

/* Mobile hides desktop grid */
@media (max-width: 1199px) {
    main .desktop-view,
    #sessionsContent .desktop-view { 
        display: none; 
    }
}

/* Ensure header navigation doesn't get bold styling */
header nav ul li a { font-weight: normal !important; }

/* Progress indicator styles (ged_math) */
.progress-indicator {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}
.status-badge {
    font-size: 0.9rem;
}

/* PCAP specific: white session cards */
.session-card { background: white; }

/* Mobile modal responsive styles (ged_la) */
@media (max-width: 576px) {
    .modal-dialog { 
        margin: 10px; 
        max-width: calc(100% - 20px);
    }
    .modal-body { 
        padding: 15px; 
    }
    .modal-body .alert {
        font-size: 0.85rem;
    }
    .modal-body ol {
        padding-left: 1rem;
    }
}
