﻿
.xp-reporter-admin {
    max-width: 1500px;
    margin: 0 auto;
    padding: 25px;
    color: #1f2937;
}

.xp-reporter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

    .xp-reporter-header h2 {
        margin: 0;
        font-size: 26px;
        font-weight: 750;
    }

    .xp-reporter-header p {
        color: #6b7280;
        margin: 6px 0 0;
    }

.xp-reporter-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.xp-reporter-btn-primary {
    background: #e31b23;
    color: white;
}

    .xp-reporter-btn-primary:hover {
        background: #c8171e;
        color: white;
    }

.xp-reporter-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.xp-reporter-stat {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 18px;
}

    .xp-reporter-stat span {
        display: block;
        color: #6b7280;
        font-size: 13px;
    }

    .xp-reporter-stat strong {
        display: block;
        font-size: 26px;
        margin-top: 7px;
    }

.active-count {
    color: #16834a;
}

.inactive-count {
    color: #d97706;
}

.xp-reporter-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

    .xp-reporter-toolbar input,
    .xp-reporter-toolbar select {
        min-height: 42px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        padding: 9px 12px;
        background: white;
    }

    .xp-reporter-toolbar input {
        flex: 1;
        min-width: 0;
    }

.xp-reporter-table-wrapper {
    overflow-x: auto;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
}

.xp-reporter-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
}

    .xp-reporter-table th {
        background: #f8fafc;
        color: #475569;
        font-size: 12px;
        text-align: left;
        text-transform: uppercase;
        padding: 15px 13px;
        border-bottom: 1px solid #e5e7eb;
    }

    .xp-reporter-table td {
        padding: 13px;
        border-bottom: 1px solid #f0f1f3;
        vertical-align: middle;
        font-size: 14px;
    }

    .xp-reporter-table tbody tr:hover {
        background: #fafafa;
    }

.xp-reporter-person {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
}

    .xp-reporter-person strong {
        display: block;
    }

    .xp-reporter-person small,
    .xp-reporter-location {
        display: block;
        color: #6b7280;
        font-size: 12px;
        margin-top: 3px;
    }

.xp-reporter-avatar,
.xp-reporter-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.xp-reporter-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
}

.xp-reporter-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 750;
}

.status-active {
    color: #166534;
    background: #dcfce7;
}

.status-inactive {
    color: #92400e;
    background: #fef3c7;
}

.xp-reporter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.xp-reporter-action {
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 5px;
    padding: 6px 9px;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

    .xp-reporter-action:hover {
        background: #f3f4f6;
    }

    .xp-reporter-action.deactivate {
        color: #b91c1c;
    }

    .xp-reporter-action.activate {
        color: #15803d;
    }

.xp-reporter-loading,
.xp-reporter-empty {
    padding: 45px 20px;
    text-align: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    color: #6b7280;
}

    .xp-reporter-empty h3 {
        color: #374151;
    }

.xp-reporter-alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.xp-reporter-error {
    background: #fff0f1;
    color: #a20f19;
}

.xp-reporter-success {
    background: #eaf7ef;
    color: #17663a;
}

.xp-reporter-copy-message {
    margin-top: 15px;
    color: #17663a;
    font-size: 13px;
}

@media (max-width: 700px) {
    .xp-reporter-admin {
        padding: 14px;
    }

    .xp-reporter-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .xp-reporter-stats {
        gap: 8px;
    }

    .xp-reporter-stat {
        padding: 12px;
    }

        .xp-reporter-stat strong {
            font-size: 21px;
        }

    .xp-reporter-toolbar {
        flex-direction: column;
    }

        .xp-reporter-toolbar input,
        .xp-reporter-toolbar select {
            width: 100%;
        }
}


.xp-reporter-form {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    overflow: hidden;
}

.xp-reporter-form-section {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

    .xp-reporter-form-section h3 {
        font-size: 17px;
        font-weight: 700;
        margin: 0 0 5px;
    }

    .xp-reporter-form-section > p {
        color: #6b7280;
        font-size: 13px;
        margin: 0 0 20px;
    }

.xp-reporter-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.xp-reporter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

    .xp-reporter-field label {
        font-size: 13px;
        font-weight: 650;
        color: #374151;
    }

        .xp-reporter-field label span {
            color: #dc2626;
        }

    .xp-reporter-field input,
    .xp-reporter-field textarea {
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        outline: none;
        font: inherit;
        font-size: 14px;
        box-sizing: border-box;
    }

        .xp-reporter-field input:focus,
        .xp-reporter-field textarea:focus {
            border-color: #e31b23;
            box-shadow: 0 0 0 2px rgba(227, 27, 35, .08);
        }

.xp-reporter-field-full {
    grid-column: 1 / -1;
}

.xp-reporter-field small {
    color: #6b7280;
    font-size: 12px;
}

.xp-reporter-field .validation-message {
    color: #dc2626;
    font-size: 12px;
}

.xp-reporter-photo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 25px;
    align-items: center;
}

.xp-reporter-photo-preview {
    width: 125px;
    height: 125px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    overflow: hidden;
    background: #f8fafc;
}

    .xp-reporter-photo-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.xp-reporter-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
}

.xp-reporter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

    .xp-reporter-checkbox input {
        width: 17px;
        height: 17px;
        accent-color: #e31b23;
    }

.xp-reporter-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 24px;
    background: #fafafa;
}

.xp-reporter-btn-secondary {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

    .xp-reporter-btn-secondary:hover {
        background: #f3f4f6;
        color: #111827;
    }

.xp-reporter-form-actions button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .xp-reporter-form-grid {
        grid-template-columns: 1fr;
    }

    .xp-reporter-field-full {
        grid-column: auto;
    }

    .xp-reporter-photo-layout {
        grid-template-columns: 1fr;
    }

    .xp-reporter-form-section {
        padding: 17px;
    }
}


.xp-reporter-guid-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .xp-reporter-guid-row input {
        flex: 1;
        min-width: 0;
        background: #f8fafc;
        color: #64748b;
        font-size: 13px;
    }

    .xp-reporter-guid-row button {
        flex-shrink: 0;
    }

@media (max-width: 600px) {
    .xp-reporter-guid-row {
        flex-direction: column;
        align-items: stretch;
    }
}


.xp-public-reporter-page {
    min-height: 100vh;
    background: #f3f4f6;
    padding: 25px 15px 35px;
    color: #172033;
}

.xp-public-reporter-header {
    max-width: 720px;
    margin: 0 auto 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.xp-public-reporter-brand {
    font-size: 31px;
    font-weight: 850;
    letter-spacing: -1.5px;
}

.xp-brand-x {
    color: #e31b23;
}

.xp-brand-press {
    color: #111827;
}

.xp-brand-24 {
    color: #ed414b;
}

.xp-public-reporter-tagline {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1px;
    color: #64748b;
    text-align: right;
}

.xp-public-reporter-card {
    max-width: 620px;
    margin: 0 auto;
    background: white;
    border-radius: 13px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 35px rgba(15, 23, 42, .08);
}

.xp-public-reporter-banner {
    text-align: center;
    padding: 27px 20px 30px;
    background: #111827;
    color: white;
    border-bottom: 5px solid #e31b23;
}

    .xp-public-reporter-banner span {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.2px;
        color: #d1d5db;
    }

    .xp-public-reporter-banner h1 {
        font-size: 24px;
        letter-spacing: 2px;
        margin: 13px 0 5px;
        font-weight: 800;
    }

    .xp-public-reporter-banner p {
        font-size: 12px;
        color: #cbd5e1;
        margin: 0;
    }

.xp-public-reporter-content {
    padding: 30px 35px;
    text-align: center;
}

.xp-public-reporter-photo {
    width: 145px;
    height: 145px;
    margin: 0 auto 17px;
    border-radius: 50%;
    padding: 5px;
    border: 3px solid #e31b23;
    background: white;
    overflow: hidden;
}

    .xp-public-reporter-photo img,
    .xp-public-reporter-photo-placeholder {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

.xp-public-reporter-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 35px;
    font-weight: 800;
}

.xp-public-reporter-name h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    color: #111827;
}

.xp-public-reporter-designation {
    margin-top: 7px;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

.xp-public-reporter-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 17px;
    border-radius: 30px;
    margin: 19px 0 25px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
}

.public-status-active {
    color: #166534;
    background: #dcfce7;
}

.public-status-inactive {
    color: #991b1b;
    background: #fee2e2;
}

.xp-public-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.xp-public-reporter-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    overflow: hidden;
    text-align: left;
}

.xp-public-reporter-detail {
    padding: 17px;
    border-bottom: 1px solid #e5e7eb;
}

    .xp-public-reporter-detail:first-child {
        grid-column: 1 / -1;
        background: #f8fafc;
    }

    .xp-public-reporter-detail:nth-child(2) {
        border-right: 1px solid #e5e7eb;
    }

    .xp-public-reporter-detail:last-child {
        border-bottom: none;
    }

    .xp-public-reporter-detail span {
        display: block;
        font-size: 10px;
        font-weight: 750;
        color: #94a3b8;
        letter-spacing: .8px;
        margin-bottom: 7px;
    }

    .xp-public-reporter-detail strong {
        font-size: 15px;
        color: #1f2937;
    }

.xp-public-reporter-verification {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-top: 23px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.xp-verification-check {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    font-weight: 800;
}

.xp-public-reporter-verification strong {
    font-size: 13px;
}

.xp-public-reporter-verification p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 11px;
}

.xp-public-reporter-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 19px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

    .xp-public-reporter-footer strong {
        font-size: 18px;
        font-weight: 850;
        color: #e31b23;
    }

    .xp-public-reporter-footer span {
        font-size: 14px;
        color: #475569;
    }

    .xp-public-reporter-footer small {
        font-size: 10px;
        color: #94a3b8;
    }

.xp-public-reporter-bottom {
    max-width: 620px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

.xp-public-reporter-loading,
.xp-public-reporter-not-found {
    max-width: 620px;
    margin: 50px auto;
    padding: 45px 25px;
    text-align: center;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

    .xp-public-reporter-not-found h2 {
        margin-bottom: 10px;
    }

    .xp-public-reporter-not-found p {
        color: #64748b;
        line-height: 1.6;
    }

.xp-public-reporter-not-found-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 25px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .xp-public-reporter-page {
        padding: 15px 10px 25px;
    }

    .xp-public-reporter-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .xp-public-reporter-tagline {
        text-align: left;
    }

    .xp-public-reporter-content {
        padding: 25px 17px;
    }

    .xp-public-reporter-banner h1 {
        font-size: 20px;
    }

    .xp-public-reporter-name h2 {
        font-size: 21px;
    }

    .xp-public-reporter-photo {
        width: 125px;
        height: 125px;
    }
}
