/* ===========================================================
   CSE Weightage Specific Styles
   (Common styles moved to assessment-shared.css)
   =========================================================== */

/* ===========================================================
   FIXED TOP HEADER - TITLE, DROPDOWNS, AND BUTTONS
   Extends .page-fixed-header from assessment-shared.css
   =========================================================== */
.main-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.cseweightage-fixed-header {
    padding: 16px;
    width: 100%;
    flex-shrink: 0;
}

/* ===========================================================
   SCROLLABLE CONTENT AREA
   Extends .page-container from assessment-shared.css
   Note: Uses .assessment-content-area from shared for scrolling
   =========================================================== */
.cseweightage-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.cseweightage-content-area {
    padding-bottom: 40px;
}

/* ===========================================================
   STICKY LEGEND ROW - CSE SPECIFIC
   =========================================================== */
.header-rowcse {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 8px;
    padding: 8px 16px;
    flex-shrink: 0;
}

/* ===========================================================
   HEADER ICONS
   =========================================================== */
.header-icon {
    font-size: 20px;
    margin-right: 4px;
}

.header-icon-medium {
    font-size: 18px;
    margin-right: 4px;
}

.header-icon-rating {
    font-size: 18px;
}

.header-text {
    font-size: 16px;
    font-weight: 600;
}

.info-icon-large {
    font-size: 20px;
    color: #0d6efd;
    cursor: pointer;
}

/* ===========================================================
   HIERARCHY ITEMS (Domain/Process/Practice)
   =========================================================== */
.hierarchy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
    min-height: 56px;
    gap: 16px;
}

    .hierarchy-item:hover {
        background-color: #f8f9fa;
    }

/* Item Label and Input */
.item-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.item-text {
    font-weight: 600;
    font-size: 15px;
}

.item-input {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================================
   DOMAIN - CSE WEIGHTAGE SPECIFIC
   =========================================================== */
.domain-item {
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 700;
}

    .domain-item:hover {
        background-color: #e9ecef;
        transform: translateX(2px);
    }

.domain-text {
    color: #667eea;
    font-size: 16px;
    font-weight: 700;
}

.domain-weightage-input {
    margin-right: 140px;
}

.domain-rating-input {
    margin-right: 140px;
}

/* ===========================================================
   PROCESS - CSE WEIGHTAGE SPECIFIC
   =========================================================== */
.process-item {
    cursor: pointer;
}

.process-label {
    padding-left: 0px;
}

.process-text {
    color: #10b981;
    font-size: 15px;
    font-weight: 600;
}

.process-item:hover {
    background-color: #f0fdf4;
    transform: translateX(2px);
}

.process-weightage-input {
    margin-right: 70px;
}

.process-rating-input {
    margin-right: 70px;
}

/* ===========================================================
   PRACTICE - CSE WEIGHTAGE SPECIFIC
   =========================================================== */
.practice-item {
    background-color: #fffef9;
}

.practice-label {
    padding-left: 60px;
}

.practice-text {
    color: #f59e0b;
    font-size: 14px;
    font-weight: 500;
}

.practice-item:hover {
    background-color: #fffbeb;
}

.practice-weightage-input,
.practice-rating-input {
    margin-right: 0;
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.action-button-primary,
.action-button-small {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: capitalize !important;
    width: 200px;
}

/* ===========================================================
   CSE DROPDOWN
   =========================================================== */
.cse-dropdown {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===========================================================
   RESPONSIVE DESIGN
   =========================================================== */
@media (max-width: 992px) {
    .domain-weightage-input,
    .domain-rating-input {
        margin-right: 100px;
    }

    .process-weightage-input,
    .process-rating-input {
        margin-right: 50px;
    }
}

@media (max-width: 768px) {
    .hierarchy-item {
        padding: 12px 16px;
        min-height: 48px;
        flex-wrap: wrap;
    }

    .item-label {
        flex-basis: 100%;
    }

    .item-input {
        flex-basis: 50%;
    }

    .item-text {
        font-size: 14px;
    }

    .domain-text {
        font-size: 15px;
    }

    .process-text {
        font-size: 14px;
    }

    .practice-text {
        font-size: 13px;
    }

    .process-label {
        padding-left: 15px;
    }

    .practice-label {
        padding-left: 30px;
    }
}


/* ===========================================================
   GLOBAL WRAPPER FIX - make full viewport with scrollable content
   =========================================================== */
.main-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; /* prevent double scrollbars */
}

/* ===========================================================
   FIXED HEADER - stays on top
   =========================================================== */
.cseweightage-fixed-header {
    padding: 16px;
    width: 100%;
    flex-shrink: 0;
    background-color: #fff;
    z-index: 10;
    border-bottom: 1px solid #e5e7eb;
}

/* ===========================================================
   CONTAINER - fills remaining space after header
   =========================================================== */
.cseweightage-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100vh - 50px); /* subtract header height */
    background-color: #fff;
}

/* ===========================================================
   SCROLLABLE CONTENT AREA (ONLY THIS SCROLLS)
   =========================================================== */
.cseweightage-content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px 40px;
    scroll-behavior: smooth;
}

    /* Hide scrollbar for a cleaner look (optional) */
    .cseweightage-content-area::-webkit-scrollbar {
        width: 8px;
    }

    .cseweightage-content-area::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 4px;
    }

/* ===========================================================
   HEADER ROW (sticky legend)
   =========================================================== */
/*.header-row {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 5;
    padding: 8px 16px;
    border-bottom: 1px solid #e5e7eb;
}*/

/* ===========================================================
   RESPONSIVE FIXES
   =========================================================== */
@media (max-height: 700px) {
    .cseweightage-container {
        height: calc(100vh - 40px);
    }
}

@media (max-width: 768px) {
    .cseweightage-content-area {
        padding: 10px;
    }
}
.cseweightageletter {
    text-transform: capitalize !important;
}

