/* ===================================================================
   CARDS/PREFAB.CSS
   Prefab Card Styles and Content Display
   =================================================================== */
/* ===== 55. PREFAB STYLES ===== */

/* ----- 55.1 Prefab Content ----- */
.prefab-content {
    display: block;
    width: 100%;
    height: 150px;
    margin: 0;
    padding: 8px 10px;
    background-color: #2a2e33;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: #e0e0e0;
    border: none;
    border-radius: 0;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
    text-align: left;
    line-height: 1.2;
}

/* ----- 55.2 Prefab Scrollbar ----- */
.prefab-content::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* ----- 55.3 Prefab Card Body ----- */
.prefab-card .mod-card-body {
    padding: 0;
    margin: 0;
    background-color: #2a2e33;
    border-radius: 0;
    height: 150px;
    display: flex;
    overflow: auto;
}

/* ----- 55.4 Prefab Content Pre ----- */
.prefab-content pre {
    margin: 0;
    color: #e0e0e0;
}

/* ===== 56. EXPANDED PREFAB ===== */

/* ----- 56.1 Expanded Prefab Content ----- */
.prefab-content-expanded {
    max-height: 70vh;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ----- 56.2 Expanded Prefab Scrollbar ----- */
.prefab-content-expanded::-webkit-scrollbar {
    width: 8px;
}

.prefab-content-expanded::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.prefab-content-expanded::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* ----- 56.3 Prefab Content Pre ----- */
.prefab-content-expanded pre {
    margin: 0;
    color: #e0e0e0;
}

/* ===== 66. CONFIG CARD IN MODAL ===== */
.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    background: #1a1e21;
}

.config-section {
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.config-section-header {
    padding: 12px 15px;
    background: rgba(0, 136, 204, 0.1);
    border-bottom: 1px solid rgba(0, 136, 204, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.config-section-header:hover {
    background: rgba(0, 136, 204, 0.15);
}

.config-section-header h4 {
    margin: 0;
    color: #0088cc;
    font-size: 1.1rem;
    font-weight: 500;
}

.config-section-content {
    padding: 15px;
    display: none;
}

.config-section.expanded .config-section-content {
    display: block;
}

.config-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.config-item:last-child {
    border-bottom: none;
}

.config-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.config-item-name {
    font-weight: 500;
    color: #e0e0e0;
}

.config-item-type {
    color: #aaa;
    font-size: 0.85rem;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
}

.config-item-description {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.5;
}

.config-item-default {
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* Toggle switch for sections */
.toggle-icon {
    transition: transform 0.3s ease;
}

.config-section.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* ===== 67. EXPANDED PREFAB IN MODAL ===== */

/* ----- 66.1 Expanded Prefab Content ----- */
.prefab-content-expanded {
    background-color: #2a2e33;
    padding: 8px 10px;
    overflow-y: auto;
    flex: 1;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: #e0e0e0;
    text-align: left;
    line-height: 1.2;
}

/* ----- 66.2 Prefab Content Scrollbar ----- */
.prefab-content-expanded::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* ===== 67. HIDE SCROLLBARS IN ALL MODALS ===== */

/* Hide scrollbars in modal content while maintaining scrolling functionality */
.modal-content {
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.expanded-card-body {
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
    overflow-y: auto;
}

.expanded-card-body::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* ===== 67. MODAL FOOTER ===== */

/* ----- 67.1 Footer Container ----- */
.mod-modal-footer {
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
}

/* ----- 67.2 Source Info in Footer ----- */
.mod-modal-footer .source-info {
    color: #0088cc;  /* Blue color to match title and spine */
}


