/*
 * feather.css — Local replacement for feather-core@1.0.0-beta.44
 * Covers the exact classes used by the admin and homepage templates.
 */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1a2e;
    background-color: #f8f9fa;
}

a { color: #258aff; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-top: 0; margin-bottom: 1rem; }
ul, ol { padding-left: 1.25rem; }
img { max-width: 100%; height: auto; }

/* ===== Navigation ===== */
#navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #1a1a2e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

#navigation a { color: #fff; }
#navigation a:hover { opacity: 0.85; text-decoration: none; }

#site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

#primary-menu { display: flex; align-items: center; }

/* Hamburger toggle (hidden on desktop) */
#primary-menu .menu-button { display: none; }
#primary-menu label { display: none; cursor: pointer; color: #fff; }

.menu-items { display: flex; gap: 1.25rem; }
.menu-items a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0;
}
.menu-items a:hover { color: #fff; }

@media screen and (max-width: 600px) {
    #primary-menu label { display: block; }
    .menu-items {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a2e;
        padding: 0.75rem 1.5rem 1rem;
        gap: 0.5rem;
    }
    #primary-menu .menu-button:checked ~ .menu-items { display: flex; }
}

/* ===== Layout ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wrapper {
    padding: 1rem 1.5rem;
}

.lead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    gap: 1rem;
}

.lead h1 { margin-bottom: 0; }

/* ===== Grid (Bootstrap 3 style — only the classes actually used) ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
.col-sm-offset-3 { margin-left: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-offset-4 { margin-left: 33.333%; }

@media screen and (max-width: 768px) {
    .col-md-4, .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
    .col-md-offset-4, .col-sm-offset-3 { margin-left: 0; }
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

thead { background: #f1f3f5; }
thead td { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: #666; letter-spacing: 0.03em; }

tr {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

@media screen and (min-width: 600px) {
    tr { grid-template-columns: 4rem 1fr 5rem 4rem 4rem; }
}

td {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

td.action a {
    color: #258aff;
    font-weight: 500;
    font-size: 0.85rem;
}

td img {
    display: block;
    max-width: 48px;
    border-radius: 4px;
}

tfoot td { font-size: 0.85rem; color: #888; }

/* ===== Forms ===== */
form section {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
    display: block;
    width: 100%;
    max-width: 600px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.15s ease;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #258aff;
    box-shadow: 0 0 0 3px rgba(37,138,255,0.15);
}

.form-control.transparent {
    background-color: transparent;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

p.error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, opacity 0.15s;
    line-height: 1.5;
}

.btn:hover { opacity: 0.9; text-decoration: none; }

.btn-danger,
input[type="submit"].btn-danger {
    background: #258aff;
    color: #fff;
}

.btn-danger:hover { background: #1a6fd4; }

.btn-fill { width: 100%; }

.button {
    cursor: pointer;
}

/* ===== Pagination ===== */
.pager {
    display: inline-block;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    color: #555;
}

.text-link {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    color: #258aff;
    text-decoration: none;
    cursor: pointer;
}

.text-link:hover { color: #1a6fd4; }

.inactive-link {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

/* ===== Utility ===== */
main {
    min-height: calc(100vh - 60px);
    padding-bottom: 2rem;
}

section + section {
    margin-top: 0.5rem;
}

/* Login page typography */
.logo.cursive {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.motto {
    text-align: center;
    color: #666;
    font-weight: 400;
}

.content {
    padding: 1rem 0;
}

/* Download button in header (homepage) */
.header-btn-l-16 {
    display: flex;
    align-items: center;
}
