/* Question Types Module Styles - Premium ERP Design */

/* Category Navigation Pills Bar */
.category-nav-bar { 
    display: flex; 
    gap: 8px; 
    overflow-x: auto; 
    padding-bottom: 12px; 
    margin-bottom: 24px; 
    border-bottom: 1px solid #e2e8f0; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
.category-nav-bar::-webkit-scrollbar { display: none; }

.cat-pill { 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 600; 
    background: #ffffff; 
    border: 1px solid #cbd5e1; 
    color: #475569; 
    cursor: pointer; 
    white-space: nowrap; 
    transition: all 0.2s ease-in-out; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.cat-pill:hover { 
    background: #f8fafc; 
    border-color: #032da1; 
    color: #032da1; 
}
.cat-pill.active { 
    background: #032da1 !important; 
    color: #ffffff !important; 
    border-color: #032da1 !important; 
    box-shadow: 0 4px 10px rgba(3, 45, 161, 0.25);
}
.cat-pill span.count { 
    background: #f1f5f9; 
    color: #64748b;
    padding: 2px 7px; 
    border-radius: 10px; 
    font-size: 11px; 
    font-weight: 600;
}
.cat-pill.active span.count { 
    background: rgba(255,255,255,0.2) !important; 
    color: #ffffff !important;
}

/* Question Types Grid */
.qt-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); 
    gap: 20px; 
    margin-bottom: 30px; 
}

/* Question Type Card */
.qt-card { 
    background: #ffffff; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
    padding: 20px; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative; 
    cursor: pointer; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.qt-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 12px 24px -6px rgba(3, 45, 161, 0.12), 0 4px 8px -2px rgba(0,0,0,0.04); 
    border-color: #032da1; 
}

.qt-card-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 12px; 
}
.qt-card-icon { 
    width: 36px; 
    height: 36px; 
    border-radius: 8px; 
    background: #eff6ff; 
    color: #032da1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 15px; 
    flex-shrink: 0; 
}
.qt-card-cat { 
    font-size: 10px; 
    font-weight: 700; 
    color: #032da1; 
    background: #eff6ff; 
    padding: 3px 9px; 
    border-radius: 10px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.qt-paper-hint {
    font-size: 11px;
    font-weight: 600;
    color: #032da1;
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.qt-card:hover .qt-paper-hint {
    background: #032da1;
    color: #ffffff;
    border-color: #032da1;
}

.qt-card-body {
    flex: 1;
}
.qt-category-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.qt-card-title { 
    font-size: 15px; 
    font-weight: 700; 
    color: #0f172a; 
    margin-bottom: 6px; 
    line-height: 1.3;
}
.qt-card-desc { 
    font-size: 12px; 
    color: #64748b; 
    margin-bottom: 14px; 
    line-height: 1.5; 
    min-height: 36px; 
}

/* Feature Tags */
.qt-features-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    margin-bottom: 16px; 
}
.qt-feat-tag { 
    font-size: 11px; 
    font-weight: 500; 
    background: #f8fafc; 
    border: 1px solid #e2e8f0;
    color: #475569; 
    padding: 3px 8px; 
    border-radius: 6px; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
}
.qt-feat-tag i { 
    font-size: 11px; 
}

/* Card Footer */
.qt-card-footer { 
    border-top: 1px solid #f1f5f9; 
    padding-top: 12px; 
    margin-top: 6px;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}
.qt-answer-type { 
    color: #64748b; 
    font-size: 11px; 
    font-weight: 500; 
}
.qt-answer-type strong { 
    color: #1e293b; 
    font-weight: 600;
}

.btn-delete-qt {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #fef2f2;
    color: #ef4444;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-delete-qt:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Paper Sheet Preview */
.paper-sheet-preview { 
    background: #ffffff; 
    border: 1px solid #cbd5e1; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    padding: 30px; 
    border-radius: 4px; 
    color: #1e293b; 
    font-family: 'Poppins', sans-serif; 
    position: relative; 
}
.paper-header-title { 
    font-size: 18px; 
    font-weight: 800; 
    text-transform: uppercase; 
    text-align: center; 
    color: #000; 
    letter-spacing: 0.5px; 
}
.paper-meta-row { 
    display: flex; 
    justify-content: space-between; 
    font-size: 12px; 
    font-weight: 700; 
    border-bottom: 2px solid #333; 
    padding-bottom: 6px; 
    margin-bottom: 12px; 
}
.paper-sub-meta { 
    display: flex; 
    justify-content: space-between; 
    font-size: 12px; 
    font-weight: 600; 
    border-bottom: 1px solid #333; 
    padding-bottom: 6px; 
    margin-bottom: 15px; 
}

/* Global 12px Button Override */
.btn-custom-12 { 
    font-size: 12px !important; 
    font-weight: 600; 
    padding: 8px 16px; 
    border-radius: 6px; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    cursor: pointer; 
    border: none; 
}
.btn-custom-primary { 
    background: #032da1; 
    color: #ffffff; 
}
.btn-custom-primary:hover { 
    background: #001d6b; 
    color: #ffffff; 
}
