/* =========================================================
   Flamenet Feature Requests — Frontend Styles
   ========================================================= */

/* ── Theme overrides ──────────────────────────────────────── */
#main-column {
    width: 100%;
}

/* ── Wrapper ──────────────────────────────────────────────── */
.fnfr-wrap {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333;
    max-width: 760px;
}

/* ── Flash messages ───────────────────────────────────────── */
.fnfr-flash {
    padding: 8px 12px;
    margin-bottom: 14px;
    border: 1px solid;
    font-size: 12px;
    font-weight: 600;
}
.fnfr-flash-success {
    background: #eaf5e9;
    border-color: #4caf50;
    color: #1b5e20;
}
.fnfr-flash-error {
    background: #fdecea;
    border-color: #e53935;
    color: #b71c1c;
}

/* ── Toolbar (submit btn + sort) ─────────────────────────── */
.fnfr-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.fnfr-submit-btn {
    display: inline-block;
    padding: 5px 12px;
    background: #003399;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #002270;
}
.fnfr-submit-btn:visited {
    color: #fff;
}
.fnfr-submit-btn:hover {
    background: #0044cc;
    color: #fff;
}
.fnfr-sort-label {
    font-size: 11px;
    color: #666;
    margin-right: 4px;
}
.fnfr-sort-link {
    font-size: 11px;
    color: #0000cc;
    text-decoration: none;
    padding: 2px 6px;
    border: 1px solid transparent;
}
.fnfr-sort-link:hover,
.fnfr-sort-link.active {
    border-color: #7f9db9;
    background: #eef2ff;
    color: #003399;
}

/* ── Status tabs ─────────────────────────────────────────── */
.fnfr-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 2px solid #003399;
    padding-bottom: 6px;
}
.fnfr-status-tab {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    text-decoration: none;
    color: #0000cc;
    border: 1px solid #7f9db9;
    background: #fff;
}
.fnfr-status-tab:hover {
    background: #eef2ff;
    color: #003399;
}
.fnfr-status-tab.active {
    background: #003399;
    color: #fff;
    border-color: #003399;
    font-weight: 700;
}
.fnfr-tab-count {
    display: inline-block;
    background: #ffcc00;
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    border-radius: 8px;
    margin-left: 3px;
}
.fnfr-status-tab.active .fnfr-tab-count {
    background: rgba(255,204,0,0.85);
}

/* ── Request list ────────────────────────────────────────── */
.fnfr-list {
    border: 1px solid #7f9db9;
}
.fnfr-item {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #c8d8e8;
    background: #fff;
}
.fnfr-item:last-child {
    border-bottom: none;
}
.fnfr-item:nth-child(even) {
    background: #eef2ff;
}

/* ── Vote column ─────────────────────────────────────────── */
.fnfr-item-vote {
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #c8d8e8;
    padding: 10px 0;
}

/* ── Vote form / button ───────────────────────────────────── */
.fnfr-vote-form {
    margin: 0;
    padding: 0;
}
.fnfr-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid #7f9db9;
    background: #fff;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    transition: border-color 0.1s, background 0.1s;
    gap: 1px;
}
.fnfr-vote-btn:hover {
    border-color: #003399;
    background: #eef2ff;
}
.fnfr-vote-btn.fnfr-voted {
    border-color: #003399;
    background: #003399;
    color: #fff;
}
.fnfr-vote-arrow {
    font-size: 14px;
    line-height: 1;
}
.fnfr-vote-count {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* ── Item body ───────────────────────────────────────────── */
.fnfr-item-body {
    flex: 1;
    padding: 10px 12px;
    min-width: 0;
}
.fnfr-item-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0000cc;
    text-decoration: none;
    margin-bottom: 4px;
}
.fnfr-item-title:hover {
    color: #cc0000;
    text-decoration: underline;
}
.fnfr-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.fnfr-item-date {
    font-size: 10px;
    color: #666;
}
.fnfr-item-desc {
    font-size: 11px;
    color: #555;
    margin: 0;
    line-height: 1.4;
}
.fnfr-item-desc a {
    color: #0000cc;
    white-space: nowrap;
}

/* ── Status badges ───────────────────────────────────────── */
.fnfr-status {
    display: inline-block;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 2px;
}
.fnfr-status-under_review { background: #e5e5e5; color: #555; }
.fnfr-status-planned      { background: #dbeafe; color: #1d4ed8; }
.fnfr-status-in_progress  { background: #fff3cd; color: #856404; }
.fnfr-status-completed    { background: #d1fae5; color: #065f46; }
.fnfr-status-declined     { background: #fde8e8; color: #9b1c1c; }

/* ── Empty state ─────────────────────────────────────────── */
.fnfr-empty {
    padding: 16px;
    color: #666;
    font-size: 12px;
    background: #f9f9f9;
    border: 1px solid #c8d8e8;
}
.fnfr-empty a {
    color: #0000cc;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.fnfr-breadcrumb {
    margin-bottom: 12px;
    font-size: 11px;
}
.fnfr-breadcrumb a {
    color: #0000cc;
    text-decoration: none;
}
.fnfr-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Single view ─────────────────────────────────────────── */
.fnfr-single {
    display: flex;
    gap: 0;
    border: 1px solid #7f9db9;
    margin-bottom: 12px;
}
.fnfr-single-vote {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 0;
    border-right: 1px solid #c8d8e8;
    background: #f7f9ff;
    gap: 6px;
}
.fnfr-vote-hint {
    font-size: 10px;
    color: #666;
    text-align: center;
    padding: 0 6px;
}
.fnfr-vote-hint a {
    color: #0000cc;
}
.fnfr-single-body {
    flex: 1;
    padding: 16px;
    min-width: 0;
}
.fnfr-single-title {
    font-size: 16px;
    font-weight: 700;
    color: #003399;
    margin: 0 0 8px;
}
.fnfr-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #666;
}
.fnfr-single-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ── Admin note ──────────────────────────────────────────── */
.fnfr-admin-note {
    margin-top: 16px;
    border: 1px solid #7f9db9;
    background: #eef2ff;
}
.fnfr-admin-note-header {
    background: #003399;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fnfr-admin-note-body {
    padding: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
}

/* ── Single footer ───────────────────────────────────────── */
.fnfr-single-footer {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}
.fnfr-single-footer a {
    color: #0000cc;
    text-decoration: none;
}
.fnfr-single-footer a:hover {
    text-decoration: underline;
}

/* ── Submit box ──────────────────────────────────────────── */
.fnfr-submit-box {
    border: 1px solid #7f9db9;
    margin-top: 4px;
}
.fnfr-submit-header {
    background: #003399;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    letter-spacing: 0.5px;
}
.fnfr-submit-body {
    padding: 14px 16px;
}
.fnfr-submit-intro {
    font-size: 12px;
    color: #444;
    margin-bottom: 14px;
    line-height: 1.5;
}
.fnfr-submit-intro a {
    color: #0000cc;
}

/* ── Form fields ─────────────────────────────────────────── */
.fnfr-form .fnfr-field {
    margin-bottom: 12px;
}
.fnfr-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
}
.fnfr-required {
    color: #cc0000;
}
.fnfr-form input[type="text"],
.fnfr-form textarea {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    border: 1px solid #7f9db9;
    padding: 5px 7px;
    box-sizing: border-box;
    color: #333;
}
.fnfr-form input[type="text"]:focus,
.fnfr-form textarea:focus {
    outline: none;
    border-color: #003399;
}
.fnfr-field-hint {
    display: block;
    font-size: 10px;
    color: #666;
    margin-top: 3px;
    line-height: 1.4;
}
.fnfr-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.fnfr-btn-submit {
    padding: 6px 16px;
    background: #003399;
    color: #fff;
    border: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.fnfr-btn-submit:hover {
    background: #0044cc;
}
.fnfr-btn-cancel {
    font-size: 12px;
    color: #666;
    text-decoration: none;
}
.fnfr-btn-cancel:hover {
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
    .fnfr-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .fnfr-item-vote {
        flex: 0 0 50px;
    }
    .fnfr-single {
        flex-direction: column;
    }
    .fnfr-single-vote {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #c8d8e8;
        padding: 10px 14px;
    }
}
