/* =====================================================
   RORASERVICE - SHARED GLOBAL STYLES
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f8fafc;

    color: #334155;

    line-height: 1.5;
}


a {
    color: inherit;

    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


/* =====================================================
   DESIGN TOKENS
===================================================== */

:root {

    --primary: #176b87;

    --primary-dark: #12566c;

    --primary-light: #e8f5f8;

    --secondary: #eef8fa;


    --dark: #172b4d;

    --text: #334155;

    --muted: #64748b;


    --background: #f8fafc;

    --white: #ffffff;


    --border: #e2e8f0;


    --success: #198754;

    --success-light: #dcfce7;


    --warning: #d97706;

    --warning-light: #fef3c7;


    --danger: #dc3545;

    --danger-light: #fee2e2;


    --info: #2563eb;

    --info-light: #dbeafe;


    --radius: 12px;


    --shadow:
        0 8px 24px rgba(15, 23, 42, 0.06);

}


/* =====================================================
   LAYOUT
===================================================== */

.container {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding-left: 24px;

    padding-right: 24px;

}


main {

    min-height: calc(100vh - 76px);

}


/* =====================================================
   BRAND
===================================================== */

.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--dark);

    font-size: 20px;

    font-weight: 800;

}


.brand > span > span {

    color: var(--primary);

}


.brand-icon {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-size: 20px;

    font-weight: 800;

}


/* =====================================================
   NAVIGATION
===================================================== */

.app-navbar {

    height: 76px;

    background: white;

    border-bottom: 1px solid var(--border);

}


.navbar-inner {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.app-nav {

    display: flex;

    align-items: center;

    gap: 28px;

}


.app-nav a {

    color: var(--text);

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s ease;

}


.app-nav a:hover {

    color: var(--primary);

}


.mobile-menu-toggle {

    display: none;

    background: none;

    border: none;

    font-size: 24px;

    cursor: pointer;

    margin-left: auto;

    color: var(--text);

    padding: 5px;

    line-height: 1;

}


@media (max-width: 650px) {

    .container {

        padding-left: 18px;

        padding-right: 18px;

    }


    .navbar-inner {

        position: relative;

    }


    .mobile-menu-toggle {

        display: block;

        position: absolute;

        right: 18px;

        top: 50%;

        transform: translateY(-50%);

    }


    .app-nav {

        display: none;

        position: absolute;

        top: calc(100% + 1px);

        left: 0;

        right: 0;

        background: white;

        border-bottom: 1px solid var(--border);

        flex-direction: column;

        padding: 0 18px;

        gap: 0;

        box-shadow: var(--shadow);

        z-index: 100;

    }


    .app-nav.active {

        display: flex;

    }


    .app-nav a {

        padding: 14px 0;

        border-bottom: 1px solid var(--border);

        width: 100%;

    }


    .app-nav a:last-child {

        border-bottom: none;
    }

}


/* =====================================================
    BUTTONS
===================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 10px 18px;

    border-radius: 8px;

    border: 1px solid transparent;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;

}


.btn-primary {

    background: var(--primary);

    color: white;

}


.btn-primary:hover {

    background: var(--primary-dark);

}


.btn-outline {

    background: white;

    color: var(--primary);

    border-color: var(--primary);

}


.btn-outline:hover {

    background: var(--primary-light);

}


.btn-danger {

    background: var(--danger);

    color: white;

}


.btn-success {

    background: var(--success);

    color: white;

}


/* =====================================================
   CARDS
===================================================== */

.card {

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}


/* =====================================================
   SECTION LABELS
===================================================== */

.section-label {

    display: inline-block;

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


/* =====================================================
   FORMS
===================================================== */

.form-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.form-group label {

    color: var(--dark);

    font-size: 14px;

    font-weight: 600;

}


.form-control {

    width: 100%;

    min-height: 44px;

    padding: 11px 13px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: white;

    color: var(--text);

    outline: none;

    transition: 0.2s ease;

}


.form-control:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(23, 107, 135, 0.1);

}


textarea.form-control {

    min-height: 130px;

    resize: vertical;

}


/* =====================================================
   BADGES
===================================================== */

.badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 5px 10px;

    border-radius: 20px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;

}


.badge-reported {

    background: var(--info-light);

    color: var(--info);

}


.badge-acknowledged {

    background: var(--warning-light);

    color: var(--warning);

}


.badge-assigned {

    background: #ede9fe;

    color: #7c3aed;

}


.badge-in-progress {

    background: var(--warning-light);

    color: var(--warning);

}


.badge-resolved,

.badge-community-verified {

    background: var(--success-light);

    color: var(--success);

}


/* =====================================================
   ADMIN DASHBOARD
===================================================== */

.admin-page {

    padding: 45px 0;

}


.dashboard-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

}


.dashboard-header h1 {

    margin-top: 8px;

    color: var(--dark);

    font-size: 32px;

}


.dashboard-header p {

    margin-top: 8px;

    color: var(--muted);

}


/* =====================================================
   STATISTICS
===================================================== */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-top: 30px;

}


.stat-card {

    padding: 22px;

}


.stat-card small {

    display: block;

    color: var(--muted);

    font-size: 12px;

}


.stat-card h2 {

    margin-top: 8px;

    color: var(--dark);

    font-size: 32px;

}


.stat-card.primary h2 {

    color: var(--primary);

}


.stat-card.warning h2 {

    color: var(--warning);

}


.stat-card.success h2 {

    color: var(--success);

}


.stat-card.danger h2 {

    color: var(--danger);

}


/* =====================================================
   DASHBOARD CONTENT
===================================================== */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 20px;

    margin-top: 25px;

}


.dashboard-card {

    padding: 25px;

}


.dashboard-card h2 {

    color: var(--dark);

    font-size: 20px;

}


/* =====================================================
   REPORT LIST
===================================================== */

.report-list {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 20px;

}


.report-list-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 16px;

    border: 1px solid var(--border);

    border-radius: 10px;

    transition: 0.2s ease;

}


.report-list-item:hover {

    border-color: var(--primary);

    background: var(--secondary);

}


.report-list-item h3 {

    color: var(--dark);

    font-size: 15px;

}


.report-list-item p {

    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;

}


/* =====================================================
   PROGRESS BARS
===================================================== */

.progress-group {

    margin-top: 22px;

}


.progress-label {

    display: flex;

    justify-content: space-between;

    margin-bottom: 6px;

    color: var(--text);

    font-size: 13px;

}


.progress-bar {

    height: 8px;

    overflow: hidden;

    border-radius: 20px;

    background: #e5e7eb;

}


.progress-value {

    height: 100%;

    border-radius: inherit;

    background: var(--primary);

}


/* =====================================================
   ADMIN REPORTS
===================================================== */

.reports-toolbar {

    display: flex;

    gap: 12px;

    margin-top: 25px;

}


.reports-toolbar .form-control:first-child {

    flex: 1;

}


.admin-report-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 22px;

    margin-bottom: 15px;

}


.admin-report-card h3 {

    color: var(--dark);

    font-size: 17px;

}


.admin-report-card p {

    margin-top: 5px;

    color: var(--muted);

    font-size: 13px;

}


.admin-report-actions {

    display: flex;

    align-items: center;

    gap: 12px;

}


/* =====================================================
   REPORT DETAILS
===================================================== */

.detail-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

}


.detail-header h1 {

    margin-top: 8px;

    color: var(--dark);

    font-size: 32px;

}


.detail-header p {

    margin-top: 7px;

    color: var(--muted);

}


.detail-card {

    padding: 28px;

    margin-top: 20px;

}


.detail-card h2 {

    color: var(--dark);

    font-size: 20px;

}


.detail-card h3 {

    color: var(--dark);

}


.detail-description {

    margin-top: 12px;

    color: var(--text);

    line-height: 1.7;

}


/* =====================================================
   TIMELINE
===================================================== */

.timeline {

    display: flex;

    flex-direction: column;

    gap: 22px;

    margin-top: 25px;

}


.timeline-item {

    display: flex;

    align-items: flex-start;

    gap: 14px;

}


.timeline-icon {

    width: 30px;

    height: 30px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #e5e7eb;

    color: white;

    font-size: 13px;

    font-weight: 700;

}


.timeline-item.completed .timeline-icon {

    background: var(--success);

}


.timeline-item strong {

    color: var(--dark);

    font-size: 14px;

}


.timeline-item p {

    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;

}


/* =====================================================
   FEEDBACK PAGE
===================================================== */

.feedback-stats {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 30px;

}


.feedback-stat {

    padding: 25px;

}


.feedback-stat small {

    color: var(--muted);

}


.feedback-stat h2 {

    margin-top: 8px;

    font-size: 32px;

}


.feedback-list {

    margin-top: 25px;

}


.feedback-item {

    padding: 20px 0;

    border-bottom: 1px solid var(--border);

}


.feedback-item:last-child {

    border-bottom: none;

}


.feedback-item strong {

    color: var(--dark);

}


.feedback-item p {

    margin-top: 6px;

    color: var(--muted);

    font-size: 13px;

}


/* =====================================================
   REPORT SUCCESS
===================================================== */

.success-page {

    min-height: calc(100vh - 76px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px 0;

}


.success-wrapper {

    width: 100%;

    max-width: 650px;

    text-align: center;

}


.success-icon {

    width: 76px;

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: var(--success-light);

    color: var(--success);

    font-size: 38px;

    font-weight: 800;

}


.success-wrapper h1 {

    margin-top: 12px;

    color: var(--dark);

    font-size: 40px;

}


.success-message {

    margin: 15px auto 30px;

    color: var(--muted);

    line-height: 1.7;

}


/* =====================================================
   TRACKING CARD
===================================================== */

.tracking-card {

    padding: 22px 24px;

    text-align: left;

}


.tracking-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.tracking-card-header span {

    display: block;

    color: var(--muted);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

}


.tracking-card-header strong {

    display: block;

    margin-top: 5px;

    color: var(--primary);

    font-size: 27px;

}


.copy-button {

    padding: 8px 13px;

    border: 1px solid var(--border);

    border-radius: 7px;

    background: white;

    color: var(--text);

    cursor: pointer;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {


    .stats-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .dashboard-grid {

        grid-template-columns: 1fr;

    }


    .feedback-stats {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 650px) {


    .container {

        padding-left: 18px;

        padding-right: 18px;

    }


    .app-nav {

        display: none;

    }


    .dashboard-header {

        flex-direction: column;

    }


    .dashboard-header h1 {

        font-size: 28px;

    }


    .stats-grid {

        grid-template-columns: 1fr;

    }


    .feedback-stats {

        grid-template-columns: 1fr;

    }


    .dashboard-grid {

        grid-template-columns: 1fr;

    }


    .reports-toolbar {

        flex-direction: column;

    }


    .admin-report-card {

        align-items: flex-start;

        flex-direction: column;

    }


    .admin-report-actions {

        width: 100%;

        justify-content: space-between;

    }


    .detail-header {

        flex-direction: column;

    }


    .success-wrapper h1 {

        font-size: 32px;

    }


    .tracking-card {

        padding: 18px;

    }

}