/* Secure File Vault — IE7+ friendly layout (tables + floats, no flex/grid required) */

/* Reset */
html, body, div, span, h1, h2, h3, p, a, form, label, table, tbody, thead, tr, th, td, input, button {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
}

body {
    background: #0f1419;
    color: #e7ecf1;
    font-size: 14px;
    line-height: 1.45;
    min-height: 100%;
}

/* Subtle gradient via solid colors for old IE (filter below) */
body.page-login {
    background-color: #0f1419;
    background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
}

a { color: #6ec1ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
    width: 420px;
    margin: 60px auto 24px auto;
    padding: 0 12px;
}

.wrap.wide {
    width: 920px;
    max-width: 96%;
    margin-top: 24px;
}

/* Login card */
.login-box {
    background: #1a222c;
    border: 1px solid #2a3644;
    padding: 28px 28px 22px 28px;
    /* IE box model hint */
    zoom: 1;
}

.brand {
    text-align: center;
    margin-bottom: 22px;
}

.brand-mark {
    font-size: 12px;
    letter-spacing: 0.12em;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #6ec1ff;
    font-weight: bold;
}

.brand h1 {
    font-size: 22px;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 4px;
}

.tagline {
    color: #8b9aab;
    font-size: 12px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 5px;
    color: #b7c2ce;
    font-size: 12px;
    font-weight: bold;
}

.input {
    display: block;
    width: 100%;
    *width: 94%; /* IE7 */
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding: 9px 10px;
    background: #0f1419;
    border: 1px solid #3a4a5c;
    color: #e7ecf1;
    font-size: 14px;
}

.input:focus {
    border-color: #4f8ef7;
    outline: none;
}

.actions {
    margin-top: 18px;
}

.btn {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #3a4a5c;
    background: #2a3644;
    color: #e7ecf1;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    vertical-align: middle;
    zoom: 1;
    *display: inline;
}

.btn:hover {
    background: #354454;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    *width: 100%;
    background: #1f5fbf;
    border-color: #1f5fbf;
    color: #fff;
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 14px;
}

.btn-primary:hover {
    background: #2770df;
    border-color: #2770df;
}

.btn-primary[disabled],
.btn-primary.disabled {
    background: #3a4a5c;
    border-color: #3a4a5c;
    cursor: default;
    color: #a0aab5;
}

.btn-ghost {
    background: transparent;
    border-color: #4a5a6c;
    color: #d0d8e0;
    padding: 6px 12px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-download {
    background: #176b3a;
    border-color: #176b3a;
    color: #fff;
}

.btn-download:hover {
    background: #1e8a4c;
    border-color: #1e8a4c;
}

.hint {
    margin-top: 16px;
    font-size: 11px;
    color: #7a8896;
    text-align: center;
}

.footer-note {
    text-align: center;
    color: #5a6672;
    font-size: 11px;
    margin-top: 16px;
}

/* Alerts */
.alert {
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    font-size: 13px;
    zoom: 1;
}

.alert-error {
    background: #3a1515;
    border-color: #8b2e2e;
    color: #ffb4b4;
}

.alert-info {
    background: #14283a;
    border-color: #2e5f8b;
    color: #b4d4ff;
}

/* Vault top bar */
.topbar {
    background: #1a222c;
    border: 1px solid #2a3644;
    padding: 12px 16px;
    margin-bottom: 16px;
    zoom: 1;
}

.topbar:after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}

.topbar-left {
    float: left;
    line-height: 30px;
}

.topbar-right {
    float: right;
    line-height: 30px;
}

.user-chip {
    color: #b7c2ce;
    margin-right: 10px;
    font-size: 13px;
}

.inline-form {
    display: inline;
}

.panel {
    background: #1a222c;
    border: 1px solid #2a3644;
    padding: 18px 18px 12px 18px;
}

.panel-head h2 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 6px;
}

.muted {
    color: #8b9aab;
    font-size: 12px;
}

.table-wrap {
    margin-top: 14px;
    border: 1px solid #2a3644;
    overflow-x: auto;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    background: #121820;
}

.file-table th,
.file-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #2a3644;
    font-size: 13px;
}

.file-table th {
    background: #1f2832;
    color: #b7c2ce;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.file-table tr:hover td {
    background: #172029;
}

.file-table .empty {
    text-align: center;
    color: #8b9aab;
    padding: 28px 12px;
}

.file-table code {
    background: #0f1419;
    padding: 1px 5px;
    border: 1px solid #2a3644;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.col-type { width: 70px; }
.col-size { width: 80px; }
.col-date { width: 130px; }
.col-act  { width: 100px; }

.icon-dir, .icon-file {
    margin-right: 6px;
    font-size: 10px;
    font-weight: bold;
    color: #8b9aab;
    font-family: Consolas, "Courier New", monospace;
}

.logo-dot {
    color: #6ec1ff;
    font-size: 11px;
    font-weight: bold;
    margin-right: 6px;
}

.security-note {
    margin-top: 14px;
    font-size: 11px;
    color: #6a7886;
}

/* Spinner overlay for submit (non-blocking progressive enhancement) */
.btn .spinner {
    display: none;
}

.btn.loading .spinner {
    display: inline;
}

.btn.loading .btn-label {
    /* keep layout */
}
