/* --- DESIGN SYSTEM --- */
:root { --bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); --glass: rgba(255, 255, 255, 0.95); --primary: #0056b3; --accent: #00a8ff; --text-main: #333; --warning-bg: #fff3cd; --warning-text: #856404; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--bg-gradient); min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 40px 20px; }

/* LOGIN E COMPLETAR PERFIL */
#login-screen, #profile-completion-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-gradient); z-index: 9999; display: flex; justify-content: center; align-items: center; padding: 20px; overflow-y: auto; }
.login-card { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); text-align: center; width: 100%; max-width: 400px; margin: auto; }
.login-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.login-input, .login-select { width: 100%; padding: 15px; margin: 8px 0; border: 2px solid #eee; border-radius: 10px; font-size: 1rem; outline: none; transition: border 0.3s; background: white; }
.login-input:focus, .login-select:focus { border-color: var(--accent); }
.btn-login { background: var(--primary); color: white; border: none; padding: 15px; width: 100%; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s; margin-top: 15px; }
.btn-login:hover { background: #004494; } .btn-login:disabled { background: #ccc; cursor: not-allowed; }
.error-msg { color: #e74c3c; margin-top: 15px; font-size: 0.9rem; display: none; background: #ffeaea; padding: 10px; border-radius: 8px; }
.success-msg { color: #27ae60; margin-top: 15px; font-size: 0.9rem; display: none; background: #eafaf1; padding: 10px; border-radius: 8px; }
.auth-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.link-action { color: #666; cursor: pointer; text-decoration: none; }
.link-action:hover { color: var(--primary); text-decoration: underline; } .link-highlight { color: var(--primary); font-weight: 600; }
.hidden-field { display: none !important; }

/* WRAPPER DE SENHA */
.password-wrapper { position: relative; width: 100%; margin: 8px 0; }
.password-wrapper .login-input { margin: 0; padding-right: 45px; }
.eye-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #888; z-index: 10; font-size: 1rem; }
.eye-icon:hover { color: var(--primary); }

/* APP CONTAINER */
.container { width: 100%; max-width: 1200px; background: var(--glass); border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.4); min-height: 800px; display: none; flex-direction: column; overflow: hidden; position: relative; }
header { background: white; padding: 20px 40px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo-area h1 { font-size: 1.5rem; color: var(--primary); font-weight: 700; } .logo-area span { font-size: 0.9rem; color: #666; font-weight: 400; }
.header-actions { display: flex; gap: 10px; }
.btn-header { background: #f0f2f5; border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer; color: #555; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: all 0.3s; }
.btn-header:hover { background: var(--primary); color: white; } .btn-logout { color: #e74c3c; } .btn-logout:hover { background: #e74c3c; color: white; }
main { padding: 40px; flex: 1; overflow-y: auto; }
footer { text-align: center; padding: 20px; border-top: 1px solid #eee; color: #888; font-size: 0.85rem; background: white; }

/* DASHBOARD GRID */
.section-title { font-size: 1.4rem; margin-bottom: 25px; color: #2c3e50; border-bottom: 2px solid #eee; padding-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-top: 20px; }
.dash-card { background: white; padding: 30px 20px; border-radius: 15px; text-align: center; border: 1px solid #eee; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; position: relative; }
.dash-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); border-color: var(--accent); }
.dash-icon { font-size: 2.5rem; margin-bottom: 15px; } .dash-title { font-weight: 600; font-size: 1.1rem; color: #444; }

/* CORES E ÍCONES */
.c-aviso { color: #e67e22; } .c-doc { color: #3498db; } .c-user { color: #2ecc71; } .c-guide { color: #9b59b6; } .c-rule { color: #e74c3c; } .c-ata { color: #8e44ad; } .c-rel { color: #27ae60; } .c-app { color: #e84393; } .c-crono { color: #e17055; } .c-admin { color: #34495e; }

/* LISTAS E GAVETA DE DEPENDENTES */
.file-list { display: flex; flex-direction: column; gap: 10px; }
.file-item { background: white; padding: 12px 20px; border-radius: 8px; border: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.file-item:hover { background: #f0f7ff; border-color: #cce5ff; }
.file-info { display: flex; align-items: center; gap: 15px; } .file-name { font-weight: 500; color: #555; font-size: 0.95rem; }
.file-actions { display: flex; gap: 8px; }
.btn-action { text-decoration: none; padding: 8px 15px; border-radius: 6px; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; font-weight: 500; transition: opacity 0.2s; cursor: pointer; border: none; }
.btn-action:hover { opacity: 0.8; } 
.btn-view { background: #e3f2fd; color: #1976d2; } 
.btn-download { background: #34495e; color: white; }
.btn-back-internal { cursor: pointer; color: #666; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding: 5px 10px; border-radius: 5px; } .btn-back-internal:hover { background: #eee; color: var(--primary); }

.folder-grid-dynamic { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.folder-card-dynamic { background: white; padding: 20px; border-radius: 12px; border: 1px solid #eee; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); } 
.folder-card-dynamic:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--primary); }
.folder-icon-large { font-size: 2.5rem; color: #f1c40f; }
.folder-name-text { font-weight: 600; color: #555; font-size: 0.95rem; }

.admin-box { background: #f8f9fa; border: 2px dashed #00a8ff; padding: 20px; border-radius: 12px; margin-bottom: 30px; display: none; }
.admin-input { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Poppins'; }
.btn-postar { background: #27ae60; color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; }

.aviso-card { background: white; border-left: 5px solid #e67e22; padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; }
.aviso-titulo { font-weight: 700; color: #333; font-size: 1.1rem; margin-bottom: 5px; }
.aviso-data { font-size: 0.8rem; color: #999; margin-bottom: 10px; display: block; }
.aviso-texto { color: #555; white-space: pre-wrap; line-height: 1.5; }
.btn-delete-aviso { position: absolute; top: 15px; right: 15px; color: #e74c3c; cursor: pointer; background: none; border: none; font-size: 1.1rem; display: none; }

.user-table-container { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.user-table th, .user-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.user-table th { background: #f8f9fa; color: #555; font-weight: 600; }
.user-badge { padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-admin { background: #cce5ff; color: #004085; }
.btn-toggle-status { padding: 5px 10px; border: none; border-radius: 5px; cursor: pointer; font-size: 0.8rem; font-weight: 500; transition: 0.2s; margin-bottom: 5px; width: 100%; }
.btn-approve { background: #28a745; color: white; }
.btn-block { background: #dc3545; color: white; }
.btn-make-admin { background: #17a2b8; color: white; }
.btn-remove-admin { background: #6c757d; color: white; }

.btn-expand { background: none; border: none; cursor: pointer; color: var(--primary); font-size: 1.1rem; padding: 5px 10px; border-radius: 5px; transition: background 0.2s; margin-left: 10px; }
.btn-expand:hover { background: #e3f2fd; }
.deps-row { display: none; background: #fafafa; }
.deps-cell { padding: 15px 15px 20px 40px !important; border-top: none !important; box-shadow: inset 0 4px 6px -4px rgba(0,0,0,0.05); }
.dep-card { background: white; border: 1px solid #ddd; border-left: 4px solid var(--primary); border-radius: 8px; padding: 10px 15px; margin-bottom: 8px; display: inline-block; min-width: 220px; margin-right: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.dep-card p { margin: 0 0 5px 0; font-size: 0.85rem; color: #555; }
.dep-card strong { color: #333; font-size: 0.95rem; }

/* MODAIS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 10000; display: none; justify-content: center; align-items: center; padding: 20px; }
.modal-content { background: white; width: 100%; max-width: 900px; height: 85vh; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.modal-header { padding: 15px; background: #f8f9fa; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-weight: 600; color: #333; }
.btn-close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; }
.modal-body { flex: 1; background: #eee; }
iframe.doc-viewer { width: 100%; height: 100%; border: none; }

/* ESTILO ESPECÍFICO DE PROJETOS E DEMAIS... */
.zip-container { margin-bottom: 25px; display:flex; justify-content: flex-start; } .btn-zip { display: inline-flex; align-items: center; gap: 10px; background: #27ae60; color: white; padding: 15px 30px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 1rem; box-shadow: 0 4px 10px rgba(39, 174, 96, 0.2); transition: all 0.2s; width: 100%; justify-content: center; } .btn-zip:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(39, 174, 96, 0.3); background: #219150; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; } .folder-card { background: white; padding: 25px; border-radius: 12px; border: 1px solid #eee; cursor: pointer; display: flex; align-items: center; gap: 15px; transition: 0.3s; } .folder-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--primary); }
.remember-container { text-align: left; margin: 10px 5px; display: flex; align-items: center; gap: 8px; } .remember-container input { width: auto; margin: 0; cursor: pointer; } .remember-container label { font-size: 0.85rem; color: #666; cursor: pointer; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; } .app-card { background: white; border: 1px solid #eee; border-radius: 15px; padding: 25px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.3s; } .app-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); } .app-logo { width: 70px; height: 70px; background: #f8f9fa; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #555; margin-bottom: 15px; } .store-buttons { display: flex; gap: 10px; margin-top: 20px; width: 100%; } .store-btn { flex: 1; padding: 8px; border-radius: 8px; text-decoration: none; color: white; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 5px; transition: opacity 0.2s; } .store-btn:hover { opacity: 0.9; } .btn-play { background: #34a853; } .btn-apple { background: #000000; } .btn-web { background: var(--primary); }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; } .contact-card { background: white; border-radius: 12px; padding: 20px; border: 1px solid #eee; display: flex; align-items: center; gap: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); } .contact-img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; background: #eee; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #aaa; } .contact-info h3 { font-size: 1rem; color: #333; margin-bottom: 4px; } .contact-info p { font-size: 0.85rem; color: #666; margin-bottom: 2px; } .contact-role { font-size: 0.75rem; text-transform: uppercase; color: var(--primary); font-weight: 700; letter-spacing: 0.5px; }

@media (max-width: 768px) { .container { border-radius: 0; min-height: 100vh; } header { padding: 15px 20px; flex-direction: column; align-items: flex-start; } .home-btn { width: 100%; justify-content: center; } .header-actions { margin-top: 10px; width: 100%; justify-content: space-between; } main { padding: 20px; } }