﻿body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; background-color: #f6f6ff; }

/* --- LOGIN MODAL --- */
#login-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background-color: white; padding: 30px 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); width: 100%; max-width: 350px; text-align: center; }
.modal-content h2 { margin-top: 0; color: #0056b3; }
#login-form input { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
#login-form button { width: 100%; padding: 10px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; }
#login-form button:hover { background-color: #0056b3; }
.error-message { color: #d9534f; font-weight: bold; margin-top: 10px; height: 1em; }

/* --- APP STYLES --- */
#app-container { padding: 40px 10px; }
.container_externo { max-width: 800px; margin: auto; background-color: #f9f9f9; padding: 20px 30px; border-radius: 8px; box-shadow: 0 2px 4px 1px rgba(0,0,0,0.1); }
.app-header { display: flex; justify-content: space-between; align-items: center; }
.app-header h1 { color: #0056b3; margin: 0; font-size: 24px; }
#logout-button { background: none; border: 1px solid #d9534f; color: #d9534f; padding: 5px 10px; border-radius: 5px; cursor: pointer; font-size: 14px; }
#logout-button:hover { background: #d9534f; color: white; }

.container { background-color: #fbfbfb; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px 3px rgba(0, 0, 0, 0.1); margin-top: 1rem; }
.error { color: #d9534f; font-weight: bold; padding: 10px; }

/* --- BREADCRUMBS --- */
#breadcrumb-nav { background-color: #e9ecef; padding: 10px 15px; border-radius: 6px; margin-bottom: 15px; font-size: 0.9em; box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.1);}
#breadcrumb-nav a { color: #0056b3; text-decoration: none; }
#breadcrumb-nav a:hover { text-decoration: underline; }
#breadcrumb-nav .separator { margin: 0 8px; color: #6c757d; }
#breadcrumb-nav .current-folder { font-weight: bold; color: #343a40; }

/* --- FILE LIST --- */
.file-list-container { border: 1px solid #e9ecef; border-radius: 6px; background-color: #ffffff; min-height: 400px; max-height: 65vh; overflow-y: auto; box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.1);}
ul { list-style: none; padding: 0; margin: 0; }
li { display: flex; align-items: center; border-bottom: 1px solid #f0f0f0; }
li:last-child { border-bottom: none; }
li a { color: #007bff; text-decoration: none; display: flex; align-items: center; width: 100%; padding: 10px 15px; transition: background-color 0.2s; }
li a:hover { background-color: #f8f9fa; }

.file-name { flex-grow: 1; white-space: nowrap; overflow: hidden; display: flex; }
.file-basename { overflow: hidden; text-overflow: ellipsis; }
.file-extension { color: #d63384; flex-shrink: 0; }
.file-size { color: #6c757d; font-size: 0.6em; font-family: monospace; }
.bi { font-size: 1.2rem; margin-right: 12px; }
.bi-folder-fill { color: #ffc107; }
.bi-file-earmark-text { color: #6c757d; }

footer { margin-top: 1rem; padding-right: 0.25rem; font-size: 0.8em; color: #adb5bd; text-align: right; }
