/* Shared theme for all 8 libraries - consolidated from the near-identical inline
   <style> blocks previously duplicated across each *BottomList.asp / *ViewRecord.asp /
   *AddNew.asp. Only branding text differs per library now; this file covers the look. */

body { background: #080c14; margin: 0; padding: 0; font-family: Verdana, Arial, sans-serif; }

/* Shared header bar */
.lib-header, .rec-header, .form-header {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #000814 0%, #001a38 55%, #000814 100%);
    border-top: 2px solid #00c8f0; border-bottom: 2px solid #00c8f0;
    padding: 8px 14px; margin-bottom: 10px;
}
.lib-title h1, .rec-title h1, .form-title h1 {
    font-size: 17px; color: #fff; margin: 0 0 2px; letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0,200,240,0.4);
}
.lib-title p, .rec-title p, .form-title p { font-size: 10px; color: #9bbdd4; margin: 0; }

.lib-upload-btn {
    background: linear-gradient(135deg, #0a2a5e, #0d3a7e); color: #00c8f0 !important;
    border: 1px solid #00c8f0; padding: 7px 14px; font-size: 11px; font-weight: bold;
    text-decoration: none !important; transition: all 0.15s; white-space: nowrap;
}
.lib-upload-btn:hover { background: #00c8f0; color: #000814 !important; box-shadow: 0 0 8px rgba(0,200,240,0.5); }

.rec-back, .form-back {
    background: transparent; color: #9bbdd4 !important; border: 1px solid #2a5a8c;
    padding: 7px 14px; font-size: 11px; text-decoration: none !important;
    transition: all 0.15s; white-space: nowrap;
}
.rec-back:hover, .form-back:hover { color: #c8e4ff !important; border-color: #4a8abc; }

/* List page */
.lib-wrap { max-width: 980px; margin: 0 auto; padding: 12px; }
.lib-filter { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #060a10; border: 1px solid #1a3a5c; margin-bottom: 8px; }
.lib-filter a { display: inline-block; padding: 3px 7px; font-size: 10px; font-weight: bold; color: #9bbdd4; text-decoration: none; background: #0c1220; border: 1px solid #1a3a5c; transition: all 0.12s; }
.lib-filter a:hover { background: #162040; color: #c8e4ff; border-color: #2a5a8c; }
.lib-filter a.fa { background: #0a2a5e; color: #00c8f0; border-color: #00c8f0; }
.lib-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.lib-table th { background: #1a2a6e; color: #fff; padding: 6px 8px; text-align: left; border: 1px solid #2a4a8c; white-space: nowrap; font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; }
.lib-table tr.ra td { background: #0e1a2e; }
.lib-table tr.rb td { background: #0a1422; }
.lib-table tr:hover td { background: #122040 !important; }
.lib-table td { padding: 5px 8px; border-bottom: 1px solid #1a3a5c; color: #c0d8f0; vertical-align: top; }
.lib-table a { color: #5ba3f5; text-decoration: none; }
.lib-table a:hover { color: #00c8f0; text-decoration: underline; }
.lib-footer { margin-top: 8px; font-size: 10px; color: #556b7a; }
.lib-footer a { color: #9bbdd4; }
.lib-footer a:hover { color: #00c8f0; }

/* Detail (view record) page */
.rec-wrap { max-width: 780px; margin: 0 auto; padding: 12px; }
.rec-detail { background: #0e1a2e; border: 1px solid #1a3a5c; margin-bottom: 14px; }
.rec-detail table { width: 100%; border-collapse: collapse; font-size: 11px; }
.rec-detail td { padding: 7px 10px; border-bottom: 1px solid #1a3a5c; color: #c0d8f0; vertical-align: top; }
.rec-detail td.lbl { background: #0a1422; color: #9bbdd4; font-weight: bold; width: 160px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.rec-detail tr:last-child td { border-bottom: none; }
.rec-dl form { margin: 0; }
.rec-dl button { background: linear-gradient(135deg, #0a3a1a, #0d5a2a); color: #40e080; border: 1px solid #40e080; padding: 9px 22px; font-size: 12px; font-weight: bold; cursor: pointer; transition: all 0.15s; }
.rec-dl button:hover { background: #40e080; color: #000814; box-shadow: 0 0 8px rgba(64,224,128,0.5); }
.rec-dl-hint { font-size: 10px; color: #556b7a; margin-top: 6px; }
.rec-preview-wrap { background: #111; border: 1px solid #1a3a5c; padding: 8px; margin-bottom: 14px; overflow-x: auto; }
.rec-preview-label { font-size: 10px; color: #9bbdd4; font-weight: bold; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.rec-preview-wrap a { font-size: 10px; color: #00c8f0; text-decoration: none; display: inline-block; margin-top: 8px; }
.rec-preview-wrap a:hover { text-decoration: underline; }
.rec-tip { margin-top: 12px; padding: 8px 12px; background: #060a10; border-left: 3px solid #00c8f0; font-size: 11px; color: #9bbdd4; line-height: 1.6; }

/* Upload form page */
.form-wrap { max-width: 680px; margin: 0 auto; padding: 12px; }
.form-card { background: #0e1a2e; border: 1px solid #1a3a5c; padding: 16px 20px; margin-bottom: 14px; }
.form-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.form-row:last-child { margin-bottom: 0; }
.form-lbl { font-size: 10px; color: #9bbdd4; font-weight: bold; text-transform: uppercase; letter-spacing: 0.3px; width: 160px; flex-shrink: 0; padding-top: 5px; }
.form-ctrl { flex: 1; }
.form-ctrl input[type=text], .form-ctrl textarea, .form-ctrl select { width: 100%; box-sizing: border-box; background: #060a10; color: #c0d8f0; border: 1px solid #1a3a5c; padding: 6px 8px; font-size: 11px; }
.form-ctrl input[type=text]:focus, .form-ctrl textarea:focus, .form-ctrl select:focus { outline: none; border-color: #00c8f0; }
.form-ctrl textarea { resize: vertical; min-height: 60px; }
.form-ctrl input[type=file] { color: #9bbdd4; font-size: 11px; }
.form-ctrl select option { background: #060a10; }
.form-hint { font-size: 10px; color: #556b7a; margin-top: 4px; }
.form-submit { margin-top: 16px; }
.form-submit button { background: linear-gradient(135deg, #0a2a5e, #0d3a7e); color: #00c8f0; border: 1px solid #00c8f0; padding: 9px 24px; font-size: 12px; font-weight: bold; cursor: pointer; transition: all 0.15s; }
.form-submit button:hover { background: #00c8f0; color: #000814; box-shadow: 0 0 8px rgba(0,200,240,0.5); }
.form-req { color: #e05050; margin-left: 2px; }
.form-error { max-width: 680px; margin: 0 auto 10px; padding: 8px 14px; background: #2a0a0a; border: 1px solid #e05050; color: #ffb0b0; font-size: 11px; }
