/* ------------------------------------------------------------------
   Enterprise-Grade UI Theme (Modern, Clean, Professional)
   Design System Based on Soft Shadows, Smooth Interactions, and
   Consistent Color Tokens
------------------------------------------------------------------ */

:root {
    /* Core Colors */
    --color-bg: #f4f6f9;
    --color-surface: #ffffff;
    --color-border: #e3e7ee;
    --color-text: #1f1f1f;
    --color-muted: #6f7a89;

    /* Brand Colors */
    --brand-primary: #635bff;
    --brand-primary-hover: #6f67ff;
    --brand-accent: #00b4d8;
    --brand-accent-hover: #0092b0;

    /* Effects */
    --radius-base: 14px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
}

/* --------------------------------------------------------------
   Global
-------------------------------------------------------------- */
body {
    margin: 0;
    font-family: iranyekan, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
}

* {
    box-sizing: border-box;
}

.container {
    width: 94%;
    max-width: 1250px;
    margin: auto;
}

/* --------------------------------------------------------------
   Header
-------------------------------------------------------------- */
.header {
    background: var(--color-surface);
    padding: 55px 0 40px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
}

.subtitle {
    margin-top: 8px;
    opacity: 0.65;
    font-size: 16px;
}

/* --------------------------------------------------------------
   Panels
-------------------------------------------------------------- */
.panel {
    background: var(--color-surface);
    border-radius: var(--radius-base);
    padding: 28px;
    margin-top: 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.panel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------
   Buttons
-------------------------------------------------------------- */
.speedtest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    transition: all var(--transition-base);
}

.speedtest-btn.small {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 15px;
    height: 40px;
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.speedtest-btn.small:hover {
    background: var(--brand-primary-hover);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------
   Map
-------------------------------------------------------------- */
#map {
    width: 100%;
    height: 500px;
    margin-top: 22px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------
   Summary Cards
-------------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 10px;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-title {
    opacity: .65;
    font-size: 14px;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 8px;
}

/* --------------------------------------------------------------
   Report Form
-------------------------------------------------------------- */
.report-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.report-form select,
.report-form textarea,
.report-form button {
    padding: 14px;
    border-radius: var(--radius-base);
    border: 1px solid var(--color-border);
    background: #f1f3f6;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.report-form select:focus,
.report-form textarea:focus {
    border-color: var(--brand-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.report-form textarea {
    min-height: 120px;
    grid-column: 1 / 3;
    resize: vertical;
}

.submit-btn {
    background: #2b2b2b !important;   /* رنگ تیره */
    color: white;
}

.submit-btn:hover {
    background: #1f1f1f !important;   /* Hover تیره‌تر */
}

/* --------------------------------------------------------------
   Footer
-------------------------------------------------------------- */
.footer {
    text-align: center;
    padding: 28px;
    opacity: .65;
    font-size: 14px;
    margin-top: 45px;
}

/* --------------------------------------------------------------
   Responsive
-------------------------------------------------------------- */
@media (max-width: 950px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .report-form {
        grid-template-columns: 1fr;
    }
    .report-form textarea {
        grid-column: 1 / 2;
    }
}

@media (max-width: 600px) {
    #map {
        height: 360px;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 26px;
    }
}

.reports-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-item {
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.report-header {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.report-body {
    font-size: 15px;
    line-height: 1.7;
}
