/* Updated Styles */

/* Explorer Layout */
.explorer-layout {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #007BFF;
    color: white;
    padding: 20px;
    overflow-y: auto;
}

.sidebar h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

#folder-tree {
    list-style: none;
    padding: 0;
}

.folder {
    cursor: pointer;
    margin: 5px 0;
    padding: 5px;
    border-radius: 5px;
}

.folder:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nested {
    display: none;
    padding-left: 20px;
}

.folder.expanded .nested {
    display: block;
}

/* Content Area */
.content {
    flex: 1;
    padding: 20px;
    background-color: #f4f4f9;
    overflow-y: auto;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.image-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-thumbnail img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Metadata Panel */
.metadata-panel {
    width: 250px;
    background: white;
    border-left: 1px solid #ddd;
    padding: 15px;
    position: relative;
    transition: transform 0.3s ease;
    transform: translateX(100%);
}

.metadata-panel.visible {
    transform: translateX(0);
}

/* Admin Page Styles */
.add-admin-container {
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #ddd;
}

.admin-table th, .admin-table td {
    padding: 10px;
    text-align: left;
}

.admin-table th {
    background: #007BFF;
    color: white;
}

.admin-table tr:nth-child(even) {
    background: #f4f4f9;
}

.admin-table tr:hover {
    background: #d9eaff;
}

.btn-primary {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background-color: #a71d2a;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    font-weight: bold;
    margin-bottom: 5px;
}

.modal-content input,
.modal-content select {
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.modal-content button {
    margin-top: 10px;
}
