.cfm-container {
    padding: 20px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    max-width: 100% !important;
    margin: auto;
    text-align: center;
}

#cfm-file-upload {
    margin-bottom: 10px;
}

#cfm-upload-btn {
    background: #0073aa;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
}

#cfm-file-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.cfm-file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.cfm-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.cfm-file-icon {
    font-size: 50px;
    color: #888;
}

.cfm-file-item a {
    text-decoration: none;
    color: #0073aa;
    margin-top: 5px;
}

.cfm-download {
    display: block;
    background: #28a745;
    color: white;
    padding: 5px;
    border-radius: 3px;
    margin-top: 5px;
}

/* Lightbox Styles */
.cfm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cfm-lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
}

.cfm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.cfm-container {
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#cfm-search {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.cfm-table {
    width: 100%;
    border-collapse: collapse;
}

.cfm-table th,
.cfm-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.cfm-table th {
    background: #f4f4f4;
}

.cfm-folder {
    font-weight: bold;
}

.cfm-folder:hover,
.cfm-file:hover {
    background: #f9f9f9;
    cursor: pointer;
}

button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cfm-delete-folder {
    background: red;
    color: white;
}

.cfm-delete-file {
    background: darkred;
    color: white;
}

#cfm-back-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

#cfm-back-btn:hover {
    background-color: #0056b3;
}

.cfm-folder small {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 2px;
}

.cfm-options {
    position: relative;
    display: inline-block;
}

.cfm-menu-btn {
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.cfm-dropdown {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    right: 0;
    min-width: 120px;
}

.cfm-dropdown button,
.cfm-dropdown a {
    display: block;
    padding: 8px 12px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    color: #333;
}

.cfm-dropdown button:hover,
.cfm-dropdown a:hover {
    background: #f1f1f1;
}

.cfm-dropdown a {
    color: blue;
}

.cfm-dropdown a:hover {
    color: darkblue;
}

.cfm-dropdown {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    right: 0;
    min-width: 140px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cfm-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cfm-dropdown button,
.cfm-dropdown a {
    display: block;
    padding: 10px 14px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s ease;
}

.cfm-dropdown button:hover,
.cfm-dropdown a:hover {
    background: #f8f8f8;
}

.cfm-menu-btn {
    cursor: pointer;
    font-size: 22px;
    padding: 5px;
    user-select: none;
    transition: color 0.2s ease;
}

.cfm-menu-btn:hover {
    color: #007bff;
}