*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, 'Segoe UI', Arial, sans-serif; background: #0d0d18; color: #e0e0f0; font-size: 15px; min-height: 100vh; }

.navbar { background: #080810; border-bottom: 2px solid #cc0000; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: 58px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-size: 17px; font-weight: 700; }
.brand-ecu { font-size: 20px; }
.brand-sep { color: #333; margin: 0 6px; }
.brand-ds { color: #777; font-size: 13px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; }
.red { color: #cc0000; }
.btn-logout { color: #666; text-decoration: none; font-size: 13px; }
.btn-logout:hover { color: #fff; }

.container { max-width: 1200px; margin: 28px auto; padding: 0 24px; }

.btn { display: inline-block; padding: 8px 18px; border-radius: 6px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .15s; }
.btn:hover { opacity: .82; }
.btn-primary { background: #cc0000; color: #fff; }
.btn-danger  { background: #6a1414; color: #fff; }
.btn-sm      { padding: 4px 10px; font-size: 12px; }
.btn-download { background: #14346a; color: #aad4ff; }
.btn-block   { width: 100%; text-align: center; padding: 12px; font-size: 15px; }

.alert { padding: 11px 16px; border-radius: 6px; margin-bottom: 18px; background: #1e1e08; border: 1px solid #666600; color: #dddd88; }

/* FTP Bar */
.ftp-info-bar { background: #0a0a14; border: 1px solid #1a1a38; border-radius: 8px; padding: 14px 24px; margin-bottom: 24px; display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.ftp-cred { display: flex; align-items: center; gap: 8px; }
.ftp-label { color: #555; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
code { background: #141428; padding: 3px 8px; border-radius: 4px; font-family: monospace; font-size: 13px; color: #88aaff; border: 1px solid #1e1e48; }

/* Files Grid */
.files-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .files-grid { grid-template-columns: 1fr; } }

.card { background: #10101c; border: 1px solid #1a1a32; border-radius: 10px; padding: 0; overflow: hidden; }
.card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #1a1a32; }
.card-header h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-header small { color: #555; font-size: 12px; margin-top: 3px; display: block; }
.tomaster-header { border-left: 3px solid #cc8800; }
.tomaster-header h2 { color: #cc8800; }
.toclient-header { border-left: 3px solid #0088cc; }
.toclient-header h2 { color: #0088cc; }
.file-count { background: #1a1a30; color: #666; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 400; }

.file-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.file-table th { color: #444; font-weight: 600; padding: 8px 16px; text-align: left; border-bottom: 1px solid #1a1a32; font-size: 11px; text-transform: uppercase; }
.file-table td { padding: 9px 16px; border-bottom: 1px solid #0e0e1e; vertical-align: middle; }
.file-table tr:last-child td { border-bottom: none; }
.file-table tr:hover td { background: #121220; }
.file-name { font-family: monospace; font-size: 12px; color: #b0b0d8; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: #555; white-space: nowrap; }
.file-date { color: #555; white-space: nowrap; }
.file-actions { display: flex; gap: 4px; }
.empty-files { color: #333; font-size: 13px; padding: 28px 20px; text-align: center; }

/* Login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #10101c; border: 1px solid #1a1a32; border-radius: 12px; padding: 40px; width: 340px; }
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand .brand-ecu { font-size: 26px; font-weight: 700; }
.login-sub { color: #555; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }
.login-box .form-group { margin-bottom: 14px; }
.login-box input { width: 100%; padding: 10px 14px; background: #080810; border: 1px solid #1e1e38; border-radius: 6px; color: #fff; font-size: 14px; }
.login-box input:focus { outline: none; border-color: #cc0000; }
.alert-error { background: #180808; border-color: #660000; color: #ffaaaa; }
