/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #2C001E;
    font-family: monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
}

/* Botón de cambio de interfaz */
.mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3d3d3d;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
    transition: background-color 0.3s;
}

.mode-toggle:hover {
    background: #4d4d4d;
}

/* Estilos Terminal */
.terminal-window {
    background-color: #300a24;
    width: 90%;
    max-width: 800px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.terminal-header {
    background-color: #3d3d3d;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    color: white;
    font-size: 14px;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.minimize { background-color: #febc2e; }
.maximize { background-color: #28c941; }
.close { background-color: #ff5f57; }

.terminal-content {
    padding: 20px;
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.terminal-history {
    flex-grow: 1;
    margin-bottom: 10px;
    overflow-y: auto;
}

.command-input {
    display: flex;
    align-items: center;
}

.prompt {
    color: #88ff88;
    margin-right: 8px;
}

#command-input {
    background: transparent;
    border: none;
    color: white;
    font-family: monospace;
    font-size: inherit;
    flex-grow: 1;
    outline: none;
}

.directory {
    color: #729fcf;
}

.file {
    color: white;
}

.error-message {
    color: #ff5f57;
}

.command-output {
    margin: 10px 0;
    padding-left: 20px;
}

.tree-line {
    color: white;
    font-family: monospace;
    white-space: pre;
}

.tree-line:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos GUI */
.gui-window {
    display: none;
    background-color: #300a24;
    width: 90%;
    max-width: 800px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.gui-header {
    background-color: #3d3d3d;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gui-content {
    padding: 20px;
    min-height: 400px;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
}

.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

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

.folder-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.folder-name {
    text-align: center;
    word-break: break-word;
}

.breadcrumb {
    padding: 10px 20px;
    background-color: #3d3d3d;
    border-radius: 4px;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #729fcf;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.file-content {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .terminal-window, .gui-window {
        width: 95%;
        margin: 10px;
    }
    
    .terminal-content, .gui-content {
        padding: 10px;
    }
    
    .terminal-title {
        font-size: 12px;
    }

    .folder-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}