/* ==== Main Browser Layout ==== */
.fc-browser {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    padding:16px;
    margin-top: 20px;
}

/* ==== Column Widths ==== */
.fc-browser-column {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}



/* Category (Left Column) */
.fc-categories {
    flex: 0 0 25%;
}

/* Files (Middle Column) */
.fc-files {
    flex: 0 0 30%;
}

/* Preview (Right Column) */
.fc-preview {
    flex: 1; /* take the remaining width */
}


.fc-categories{margin-bottom:12px}
.fc-cat-btn{margin-right:6px;padding:8px 12px}
.fc-files-grid{display:flex;flex-wrap:wrap;gap:10px}

@media(max-width:768px){
.fc-file-item{width:100%}}


/* Layout */
.fc-browser-column {
    min-height: 400px;
}
.fc-browser-column h3 {
    margin-top: 0;
    font-size: 16px;    
}

/* Category list */
#fc-category-list {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    border-top: 1px solid #eee;
    padding-top: 8px;
}
#fc-category-list li {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}
#fc-category-list li:hover,
#fc-category-list li.active {
    background: #f0f7ff;
    font-weight: bold;
}
.fc_cat_info {}
.fc-cat-count {
    float: right;
    background: #0073aa;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50px;
    min-width: 30px;
    min-height: 28px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}
.fc-cat-desc {
    margin-bottom: 0px;
}



/* Files */
#fc-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fc-file-item {
    padding: 6px;
    border-bottom: 1px solid #eee;
    border:1px solid #ddd;
    cursor: pointer;
    border-radius:4px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fc-file-item label {
    cursor: pointer;
    flex-shrink: 0;
}
.fc-file-type-icon {
    flex-shrink: 0;
}
.fc-file-info {
        flex: 1 1;
        text-align: center;
}
.fc-file-info p {
    margin-bottom: 0px;
}
.fc-file-type {
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    line-height: 1.5;
}

/* base */
.fc-icon { height: 50px; vertical-align: middle; display: inline-block; }

/* color examples */
.fc-icon-doc { color: #d9534f; }    /* red-ish for PDF/doc */
.fc-icon-image { color: #28a745; }  /* green-ish for images */
.fc-icon-pdf { color: #e04b3b; }    /* if you have a separate PDF class */

/* Preview */
#fc-preview-area {
    min-height: 300px;
}
.fc-placeholder {
    color: #888;
    text-align: center;
    margin-top: 50px;
}

/* Review Button */
.fc-review-send {
    text-align: right;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 0 20px;
}
#fc-review-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
}
#fc-review-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.fc-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.fc-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    width: 400px;
    max-width: 95%;
    position: relative;
}
.fc-modal-close {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 18px;
    cursor: pointer;
}
.fc-selected-file {
    margin-bottom: 5px;
}
.fc-file-title {
    margin-left: 6px;
}
.fc-success { color: green; }
.fc-error { color: red; }


#fc-send-form  .form_input {
    width: 100%;
}
#fc-send-form  .form_submit {}

/* ==== Responsive (for small screens) ==== */
@media (max-width: 900px) {
    .fc-browser {
        flex-direction: column;
    }
    .fc-categories,
    .fc-files,
    .fc-preview {
        flex: 1 1 100%;
        width: 100%;
    }
}