/* =========================
   GLOBAL
========================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b1220;
    color: #ffffff;
}


/* =========================
   LOGIN PAGE
========================= */

.login-page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;

    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(14, 165, 233, 0.15),
            transparent 35%
        ),
        #0b1220;
}


/* =========================
   MAIN CONTAINER
========================= */

.login-container {
    width: 100%;
    max-width: 430px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


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

.brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand h1 {
    font-size: 46px;
    font-weight: 700;

    letter-spacing: -1px;

    margin-bottom: 10px;
}

.brand p {
    color: #94a3b8;

    font-size: 15px;
    line-height: 1.5;
}


/* =========================
   LOGIN CARD
========================= */

.login-card {
    width: 100%;

    background: rgba(15, 23, 42, 0.9);

    border: 1px solid rgba(148, 163, 184, 0.15);

    border-radius: 18px;

    padding: 34px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);
}

.login-card h2 {
    font-size: 26px;

    margin-bottom: 8px;
}

.login-description {
    color: #94a3b8;

    font-size: 14px;

    margin-bottom: 28px;
}


/* =========================
   FORM
========================= */

.form-group {
    display: flex;
    flex-direction: column;

    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;

    font-size: 14px;

    color: #cbd5e1;
}

.form-group input {
    width: 100%;

    padding: 13px 14px;

    border-radius: 9px;

    border: 1px solid #334155;

    background: #111827;

    color: #ffffff;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group input:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.15);
}


/* =========================
   LOGIN BUTTON
========================= */

.login-button {
    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 9px;

    background: #2563eb;

    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.login-button:hover {
    background: #1d4ed8;
}

.login-button:active {
    transform: scale(0.98);
}


/* =========================
   ERROR MESSAGE
========================= */

.error-message {
    min-height: 20px;

    margin-bottom: 10px;

    color: #f87171;

    font-size: 13px;
}


/* =========================
   FOOTER
========================= */

footer {
    margin-top: 25px;

    text-align: center;

    color: #64748b;

    font-size: 12px;
}


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

@media (max-width: 500px) {

    .login-page {
        padding: 20px;
    }

    .brand h1 {
        font-size: 38px;
    }

    .login-card {
        padding: 26px 22px;
    }
}

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

.dashboard-page {
    min-height: 100vh;

    background: #0b1220;

    color: white;
}


/* =========================
   HEADER
========================= */

.dashboard-header {
    height: 72px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 28px;

    background: #0f172a;

    border-bottom: 1px solid #1e293b;
}


.dashboard-brand {
    display: flex;
    align-items: center;

    gap: 18px;
}


.dashboard-brand h1 {
    font-size: 25px;
}


.dashboard-brand span {
    color: #64748b;

    font-size: 13px;
}


.dashboard-header-right {
    display: flex;
    align-items: center;

    gap: 18px;
}


.system-status {
    color: #22c55e;

    font-size: 13px;
}


.logout-button {
    padding: 9px 16px;

    border: 1px solid #334155;

    border-radius: 8px;

    background: transparent;

    color: #cbd5e1;

    cursor: pointer;
}


.logout-button:hover {
    background: #1e293b;
}


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

.dashboard-main {
    display: grid;

    grid-template-columns: 270px 1fr;

    min-height: calc(100vh - 72px);
}


/* =========================
   SIDEBAR
========================= */

.dashboard-sidebar {
    padding: 24px;

    background: #0f172a;

    border-right: 1px solid #1e293b;
}


.sidebar-section {
    margin-bottom: 32px;
}


.sidebar-section h2 {
    margin-bottom: 15px;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #64748b;
}


/* =========================
   STATS
========================= */

.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 13px 0;

    border-bottom: 1px solid #1e293b;
}


.stat-number {
    font-size: 23px;

    font-weight: 700;
}


.stat-label {
    color: #94a3b8;

    font-size: 13px;
}


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

.control-button {
    width: 100%;

    padding: 11px 12px;

    margin-bottom: 10px;

    border: 1px solid #334155;

    border-radius: 8px;

    background: #111827;

    color: #cbd5e1;

    cursor: pointer;

    text-align: left;
}


.control-button:hover {
    border-color: #3b82f6;

    color: white;
}


/* =========================
   UTILITY FILTERS
========================= */

.utility-filter {
    display: block;

    margin-bottom: 13px;

    font-size: 13px;

    color: #cbd5e1;
}


.utility-filter input {
    margin-right: 8px;
}


/* =========================
   MAIN CONTENT
========================= */

.dashboard-content {
    padding: 24px;

    overflow: auto;
}


/* =========================
   SECTION HEADER
========================= */

.section-header {
    margin-bottom: 18px;
}


.section-header h2 {
    font-size: 20px;

    margin-bottom: 4px;
}


.section-header p {
    color: #64748b;

    font-size: 13px;
}


/* =========================
   MAP
========================= */

.map-section {
    margin-bottom: 28px;
}


#map {
    width: 100%;

    height: 430px;

    border: 1px solid #1e293b;

    border-radius: 12px;

    background: #111827;

    overflow: hidden;
}


.map-placeholder {
    height: 100%;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    color: #64748b;
}


.map-placeholder h3 {
    margin-bottom: 8px;

    color: #94a3b8;
}


/* =========================
   MATCH LIST
========================= */

.matches-section {
    padding-bottom: 40px;
}


.matches-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.match-card {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 18px;

    border: 1px solid #1e293b;

    border-radius: 10px;

    background: #0f172a;
}


.match-info {
    display: flex;

    align-items: center;

    gap: 25px;
}


.match-project {
    max-width: 270px;
}


.match-project h3 {
    margin-top: 5px;

    font-size: 14px;

    line-height: 1.4;
}


.utility-name {
    color: #60a5fa;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.match-arrow {
    color: #64748b;

    font-size: 20px;
}


/* =========================
   MATCH ACTIONS
========================= */

.match-meta {
    display: flex;

    align-items: center;

    gap: 10px;
}


.match-meta > span {
    margin-right: 10px;

    font-size: 14px;

    color: #94a3b8;
}


.view-report-button,
.download-report-button {
    padding: 9px 13px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 12px;
}


.view-report-button {
    border: none;

    background: #2563eb;

    color: white;
}


.download-report-button {
    border: 1px solid #334155;

    background: transparent;

    color: #cbd5e1;
}


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

.dashboard-page {
    min-height: 100vh;
    background: #0b1220;
    color: #ffffff;
}


/* =========================
   HEADER
========================= */

.dashboard-header {
    height: 72px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 28px;

    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dashboard-brand h1 {
    font-size: 25px;
}

.dashboard-brand span {
    color: #64748b;
    font-size: 13px;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.system-status {
    color: #22c55e;
    font-size: 13px;
}

.logout-button {
    padding: 9px 16px;

    border: 1px solid #334155;
    border-radius: 8px;

    background: transparent;
    color: #cbd5e1;

    cursor: pointer;
}

.logout-button:hover {
    background: #1e293b;
}


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

.dashboard-main {
    display: grid;
    grid-template-columns: 270px 1fr;

    min-height: calc(100vh - 72px);
}


/* =========================
   SIDEBAR
========================= */

.dashboard-sidebar {
    padding: 24px;

    background: #0f172a;
    border-right: 1px solid #1e293b;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section h2 {
    margin-bottom: 15px;

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: #64748b;
}


/* =========================
   STATS
========================= */

.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 13px 0;

    border-bottom: 1px solid #1e293b;
}

.stat-number {
    font-size: 23px;
    font-weight: 700;
}

.stat-label {
    color: #94a3b8;
    font-size: 13px;
}


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

.control-button {
    width: 100%;

    padding: 11px 12px;
    margin-bottom: 10px;

    border: 1px solid #334155;
    border-radius: 8px;

    background: #111827;
    color: #cbd5e1;

    cursor: pointer;
    text-align: left;
}

.control-button:hover {
    border-color: #3b82f6;
    color: #ffffff;
}


/* =========================
   UTILITY FILTERS
========================= */

.utility-filter {
    display: block;

    margin-bottom: 13px;

    color: #cbd5e1;
    font-size: 13px;
}

.utility-filter input {
    margin-right: 8px;
}


/* =========================
   MAIN CONTENT
========================= */

.dashboard-content {
    padding: 24px;
    overflow: auto;
}


/* =========================
   SECTION HEADERS
========================= */

.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    margin-bottom: 4px;
    font-size: 20px;
}

.section-header p {
    color: #64748b;
    font-size: 13px;
}


/* =========================
   MAP
========================= */

.map-section {
    margin-bottom: 28px;
}

#map {
    width: 100%;
    height: 430px;

    border: 1px solid #1e293b;
    border-radius: 12px;

    background: #111827;

    overflow: hidden;
}

.map-placeholder {
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #64748b;
}

.map-placeholder h3 {
    margin-bottom: 8px;
    color: #94a3b8;
}


/* =========================
   MATCHES
========================= */

.matches-section {
    padding-bottom: 40px;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px;

    border: 1px solid #1e293b;
    border-radius: 10px;

    background: #0f172a;
}

.match-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.match-project {
    max-width: 270px;
}

.match-project h3 {
    margin-top: 5px;

    font-size: 14px;
    line-height: 1.4;
}

.utility-name {
    color: #60a5fa;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-arrow {
    color: #64748b;
    font-size: 20px;
}


/* =========================
   MATCH ACTIONS
========================= */

.match-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-meta > span {
    margin-right: 10px;

    color: #94a3b8;
    font-size: 14px;
}

.view-report-button,
.download-report-button {
    padding: 9px 13px;

    border-radius: 7px;

    cursor: pointer;
    font-size: 12px;
}

.view-report-button {
    border: none;

    background: #2563eb;
    color: #ffffff;
}

.view-report-button:hover {
    background: #1d4ed8;
}

.download-report-button {
    border: 1px solid #334155;

    background: transparent;
    color: #cbd5e1;
}

.download-report-button:hover {
    background: #1e293b;
}


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

@media (max-width: 900px) {

    .dashboard-main {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: none;
    }

    .match-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .match-info {
        flex-direction: column;
        align-items: flex-start;
    }
}