/*
 * BPNEWS Reporter Portal & Admin Dashboard Stylesheet
 */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Tiro+Bangla:ital@0;1&display=swap');

.bpnews-reporter-portal,
.bpnews-auth-wrapper {
    font-family: 'Hind Siliguri', 'Tiro Bangla', sans-serif;
    color: #1f2937;
    background: #f8fafc;
    min-height: 100vh;
}

/* Auth Wrapper (Login & Register) */
.bpnews-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.bpnews-auth-box {
    background: #ffffff;
    max-width: 440px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 36px 32px;
    border: 1px solid #e2e8f0;
}
.bpnews-auth-box-wide {
    max-width: 820px;
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo {
    max-height: 64px;
    margin-bottom: 12px;
}
.auth-header h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    color: #1e293b;
}
.auth-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}
.auth-field {
    margin-bottom: 18px;
}
.auth-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="tel"],
.auth-field input[type="url"],
.auth-field select,
.auth-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}
.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    border-color: #E60000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.auth-full {
    grid-column: span 2;
}
.form-section-title {
    border-bottom: 2px solid #E60000;
    padding-bottom: 8px;
    margin: 24px 0 16px 0;
    font-size: 17px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Alert Notices */
.bpnews-alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bpnews-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}
.bpnews-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}
.bpnews-alert-info {
    background: #eff6ff;
    color: #2563eb;
    border-left: 4px solid #2563eb;
}

/* Reporter Dashboard Header */
.rep-portal-header {
    background: #ffffff;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.rep-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
}
.rep-logo {
    max-height: 44px;
}
.rep-user-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}
.rep-user-name {
    font-weight: 600;
    color: #334155;
}
.rep-logout-btn {
    color: #ef4444;
    font-size: 18px;
    text-decoration: none;
}

/* Dashboard Sidebar & Main Layout */
.rep-portal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 1320px;
    margin: 24px auto;
    padding: 0 16px;
}
.rep-sidebar {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 12px 0;
    height: fit-content;
}
.rep-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.rep-menu a:hover,
.rep-menu a.active {
    background: #fef2f2;
    color: #E60000;
    border-left-color: #E60000;
}
.rep-main-content {
    min-width: 0;
}

/* Stat Cards */
.rep-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.rep-stat-box {
    background: #ffffff;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    text-align: center;
}
.stat-icon {
    font-size: 26px;
    margin-bottom: 10px;
}
.rep-stat-box h3 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}
.rep-stat-box p {
    color: #64748b;
    font-size: 13px;
    margin: 4px 0 0 0;
}

/* Status Badges */
.rep-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-approved, .status-published, .status-paid {
    background: #dcfce7;
    color: #166534;
}
.status-pending, .status-requested, .status-processing, .status-under_review {
    background: #fef9c3;
    color: #854d0e;
}
.status-rejected, .status-suspended {
    background: #fee2e2;
    color: #991b1b;
}

/* Buttons */
.bpnews-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.bpnews-btn-primary {
    background: #E60000;
    color: #ffffff;
}
.bpnews-btn-primary:hover {
    background: #b80000;
    color: #ffffff;
}
.bpnews-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

/* Table */
.rep-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.rep-table th, .rep-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 14px;
}
.rep-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
}

@media (max-width: 900px) {
    .rep-portal-layout {
        grid-template-columns: 1fr;
    }
    .rep-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .auth-grid-2 {
        grid-template-columns: 1fr;
    }
    .auth-full {
        grid-column: span 1;
    }
}
