/* Dashboard / members-area styles */

.admin-body {
    background: #f4f5f7;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

.admin-topbar {
    background: var(--navy, #0b1f3a);
    color: #fff;
}

.admin-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 24px;
}

.admin-topbar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.admin-topbar .brand img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold, #b8944f);
}

.admin-topbar .brand-text {
    display: flex;
    flex-direction: column;
}

.admin-topbar .brand-text small {
    color: var(--gold-light, #d8bd82);
    font-size: .75rem;
}

.admin-topbar-user {
    font-size: .9rem;
    margin-left: auto;
}

.admin-topbar-user a {
    color: var(--gold-light, #d8bd82);
}

.admin-topbar-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.notification-badge-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: inherit;
    color: inherit;
    transition: opacity 0.2s;
    text-decoration: none;
}

.notification-badge-btn:hover {
    opacity: 0.8;
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-icon-polka {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold, #b8944f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.badge-count {
    font-weight: bold;
    color: var(--gold, #b8944f);
    font-size: .9rem;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.modal-table thead {
    background: #f4f5f7;
}

.modal-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #e2e4e9;
}

.modal-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e4e9;
    color: #666;
}

.modal-table tbody tr:hover {
    background: #f9f9f9;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-paid {
    background: #fff3cd;
    color: #856404;
}

.status-shipped {
    background: #d4edda;
    color: #155724;
}

.status-toggle-btn {
    background: var(--gold, #b8944f);
    border: none;
    color: #fff;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.status-toggle-btn:hover {
    background: #9d7940;
}

.text-muted {
    color: #999;
    text-align: center;
    padding: 24px;
}

.text-danger {
    color: #dc3545;
    text-align: center;
    padding: 24px;
}

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e4e9;
    padding-bottom: 16px;
    gap: 16px;
}

.orders-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #0b1f3a;
    flex: 1;
}

.close-orders-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    order: -1;
}

.close-orders-btn:hover {
    color: #000;
}

.back-btn {
    background: var(--navy, #0b1f3a);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #051424;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 65px);
}

.admin-sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid #e2e4e9;
    padding: 24px 0;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-sidebar nav a {
    padding: 12px 24px;
    color: #333;
    font-weight: bold;
    border-left: 4px solid transparent;
}

.admin-sidebar nav a:hover {
    background: #f4f5f7;
}

.admin-sidebar nav a.active {
    border-left-color: var(--gold, #b8944f);
    color: var(--navy, #0b1f3a);
    background: #f4f5f7;
}

.admin-sidebar nav a.help-link {
    margin-top: auto;
    border-top: 1px solid #e2e4e9;
    color: var(--gold, #b8944f);
    font-weight: 600;
}

.admin-sidebar nav a.help-link:hover {
    background: #f4f5f7;
    color: #9d7940;
}

.admin-content {
    flex: 1;
    padding: 32px;
}

.admin-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    padding: 28px;
    max-width: 900px;
}

.admin-card h1, .admin-card h2 {
    margin-top: 0;
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 65px);
}

.login-card {
    background: #fff;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 2px 20px rgba(0,0,0,.1);
    width: 100%;
    max-width: 380px;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 24px;
}

.officer-edit-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #e2e4e9;
}

.officer-edit-row:last-of-type {
    border-bottom: none;
}

.officer-current-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold, #b8944f);
    flex-shrink: 0;
}

.officer-fields {
    flex: 1;
}

.officer-fields label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.officer-fields input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 12px;
}

.officer-fields input[type="file"] {
    margin-bottom: 8px;
}

.officer-role-label {
    color: var(--text-muted, #6b7280);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 4px;
}

.field-error {
    color: #b00020;
    font-size: .85rem;
    display: block;
    margin-top: -6px;
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e2e4e9; }
    .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
    .officer-edit-row { flex-direction: column; }
}

/* Member registrations table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: .92rem;
}

.admin-table th, .admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e4e9;
}

.admin-table th {
    background: #f4f5f7;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .03em;
    color: var(--text-muted, #6b7280);
}

.admin-table-actions {
    white-space: nowrap;
}

.btn-small {
    padding: 6px 14px;
    font-size: .75rem;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: bold;
    text-transform: capitalize;
    background: #eee;
    color: #555;
}

.status-badge.status-pending_confirmation { background: #fdecea; color: #b00020; }
.status-badge.status-pending_approval { background: #fff8e1; color: #8a6100; }
.status-badge.status-awaiting_password { background: #e3f2fd; color: #0d47a1; }
.status-badge.status-active { background: #e6f4ea; color: #1e6b34; }
