* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #2d3748;
    color: white;
    padding: 20px 0;
}

.logo {
    padding: 0 20px;
    margin-bottom: 30px;
}

.nav-menu .menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-menu .menu-item:hover {
    background-color: #4a5568;
}

.nav-menu .menu-item.active {
    background-color: #3182ce;
}

.nav-menu .menu-item i {
    margin-right: 10px;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    background-color: #f7fafc;
    overflow-y: auto;
}

/* Header Styles */
.header {
    background-color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header i {
    cursor: pointer;
    color: #4a5568;
}

/* Content Area Styles */
.content {
    padding: 20px;
}

.content h1 {
    color: #0bc5ea;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Search Bar Styles */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.search-container input {
    width: 100%;
    padding: 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

.search-container input:focus {
    outline: none;
    border-color: #3182ce;
}

/* Folders Grid Styles */
.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.folder-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: box-shadow 0.3s;
    cursor: pointer;
}

.folder-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.folder-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.folder-icon {
    color: #ecc94b;
    font-size: 24px;
}

.folder-details h3 {
    color: #2d3748;
    margin-bottom: 4px;
}

.folder-details p {
    color: #718096;
    font-size: 14px;
}

.folder-avatar {
    background-color: #48bb78;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Drop Zone Styles */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease;
}

.drop-zone.dragover {
    border-color: #3182ce;
    background-color: #ebf8ff;
}

.drop-zone-content {
    color: #718096;
}

.drop-zone-content i {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Files List Styles */
.files-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-icon {
    font-size: 24px;
    color: #805ad5;
    margin-right: 15px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 4px;
}

.file-time {
    font-size: 14px;
    color: #718096;
}

.file-actions {
    color: #718096;
    display: flex;
    gap: 10px;
}

.file-actions button {
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.file-actions button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.file-actions .download-button {
    background-color: #48bb78; /* Verde */
    color: white;
}

.file-actions .preview-button {
    background-color: #3182ce; /* Azul */
    color: white;
}

.file-actions .delete-button {
    background-color: #e53e3e; /* Rojo */
    color: white;
}

.folder-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #0bc5ea;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(0);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar-hidden {
        transform: translateX(-100%);
    }
}

/* Add these new styles to your existing styles.css file */

.folder-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.back-button {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #2c5282;
}

.upload-button {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.upload-button:hover {
    background-color: #2c5282;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Estilos para el botón de crear carpeta */
.create-folder-button {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.create-folder-button:hover {
    background-color: #2c5282;
}

.create-folder-button i {
    font-size: 20px;
}

/* Estilo para el ícono de carpeta con un más */
.create-folder-button .folder-plus-icon {
    position: relative;
    display: inline-block;
}

.create-folder-button .folder-plus-icon .fa-folder {
    font-size: 24px;
}

.create-folder-button .folder-plus-icon .fa-plus {
    position: absolute;
    font-size: 14px;
    bottom: -5px;
    right: -5px;
    background-color: #48bb78;
    border-radius: 50%;
    padding: 3px;
    color: white;
}

/* Estilos para el botón de crear subcarpeta */
.create-subfolder-button {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.create-subfolder-button:hover {
    background-color: #2c5282;
}

.create-subfolder-button i {
    font-size: 20px;
}

.create-subfolder-button .folder-plus-icon {
    position: relative;
    display: inline-block;
}

.create-subfolder-button .folder-plus-icon .fa-folder {
    font-size: 24px;
}

.create-subfolder-button .folder-plus-icon .fa-plus {
    position: absolute;
    font-size: 14px;
    bottom: -5px;
    right: -5px;
    background-color: #48bb78;
    border-radius: 50%;
    padding: 3px;
    color: white;
}

/* Vista previa */
.file-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.file-preview-modal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.file-preview-modal .modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.file-preview-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Estilos para el botón de edición */
.editable-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-button {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s, color 0.3s;
}

.editable-container:hover .edit-button {
    opacity: 1;
}

.edit-button:hover {
    color: #3182ce;
}

/* Colores para las carpetas */
.folder-icon.yellow { color: #ecc94b; }
.folder-icon.blue { color: #3182ce; }
.folder-icon.green { color: #48bb78; }
.folder-icon.red { color: #e53e3e; }
.folder-icon.purple { color: #805ad5; }
.folder-icon.orange { color: #ed8936; }

/* Añade esto al final de styles.css */
.color-picker {
    position: absolute;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    gap: 8px;
    z-index: 1000;
    top: 100%;
    left: 0;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-option:hover {
    transform: scale(1.2);
}

.color-option.yellow { background-color: #ecc94b; }
.color-option.blue { background-color: #3182ce; }
.color-option.green { background-color: #48bb78; }
.color-option.red { background-color: #e53e3e; }
.color-option.purple { background-color: #805ad5; }
.color-option.orange { background-color: #ed8936; }

.color-button {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s, color 0.3s;
}

.editable-container:hover .color-button {
    opacity: 1;
}

.color-button:hover {
    color: #3182ce;
}

.delete-folder-button {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s, color 0.3s;
}

.editable-container:hover .delete-folder-button {
    opacity: 1;
}

.delete-folder-button:hover {
    color: #c53030;
}
