/* =========================================
   BUG REPORT PAGE
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        Arial,
        sans-serif;

    background: #0b1020;
    color: #f8fafc;
}


/* =========================================
   TOPBAR
========================================= */

.topbar {
    height: 70px;

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 0 24px;

    background: rgba(15, 23, 42, .85);

    border-bottom:
        1px solid rgba(255, 255, 255, .08);

    backdrop-filter: blur(14px);
}

.topbar h2 {
    margin: 0;

    font-size: 19px;
    font-weight: 600;
}

.back-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #fff;
    text-decoration: none;

    background:
        rgba(255, 255, 255, .07);

    font-size: 20px;

    transition:
        background .2s ease,
        transform .2s ease;
}

.back-btn:hover {
    background:
        rgba(255, 255, 255, .12);

    transform:
        translateX(-2px);
}


/* =========================================
   PAGE
========================================= */

.bug-page {
    width: 100%;

    display: flex;
    justify-content: center;

    padding:
        45px 20px 70px;
}


/* =========================================
   FORM BOX
========================================= */

.bug-box {
    width: 100%;
    max-width: 680px;

    padding: 32px;

    border-radius: 20px;

    background:
        rgba(15, 23, 42, .78);

    border:
        1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, .25);

    backdrop-filter:
        blur(16px);
}


/* =========================================
   HEADING
========================================= */

.bug-heading {
    margin-bottom: 30px;
}

.bug-heading span {
    display: block;

    margin-bottom: 8px;

    color: #818cf8;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.bug-heading h1 {
    margin:
        0 0 8px;

    font-size: 28px;
}

.bug-heading p {
    margin: 0;

    color: #94a3b8;

    line-height: 1.6;
}


/* =========================================
   FORM
========================================= */

#bugReportForm {
    display: flex;
    flex-direction: column;
}

#bugReportForm label {
    margin:
        18px 0 8px;

    font-size: 14px;
    font-weight: 600;

    color: #e2e8f0;
}

.optional {
    margin-left: 5px;

    color: #64748b;

    font-size: 11px;
    font-weight: 400;
}


/* =========================================
   INPUTS
========================================= */

#bugReportForm input,
#bugReportForm select,
#bugReportForm textarea {

    width: 100%;

    padding:
        13px 14px;

    border-radius: 11px;

    border:
        1px solid
        rgba(255, 255, 255, .10);

    outline: none;

    background:
        rgba(2, 6, 23, .50);

    color: #f8fafc;

    font: inherit;

    transition:
        border-color .2s ease,
        background .2s ease;
}


#bugReportForm textarea {
    resize: vertical;

    min-height: 110px;

    line-height: 1.5;
}


#bugReportForm input:focus,
#bugReportForm select:focus,
#bugReportForm textarea:focus {

    border-color:
        #6366f1;

    background:
        rgba(2, 6, 23, .70);
}


#bugReportForm input::placeholder,
#bugReportForm textarea::placeholder {

    color:
        #64748b;
}


#bugReportForm select option {
    background:
        #111827;

    color:
        white;
}


/* FILE INPUT */

#bugScreenshot {
    cursor: pointer;
}

#bugScreenshot::file-selector-button {

    margin-right: 12px;

    padding:
        8px 12px;

    border: none;

    border-radius: 8px;

    background:
        rgba(99, 102, 241, .18);

    color:
        #a5b4fc;

    cursor: pointer;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

#submitBugBtn {

    margin-top: 28px;

    min-height: 48px;

    border: none;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #8b5cf6
        );

    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease;
}


#submitBugBtn:hover {
    transform:
        translateY(-2px);
}


#submitBugBtn:disabled {
    opacity: .55;

    cursor: not-allowed;

    transform: none;
}


/* =========================================
   STATUS MESSAGE
========================================= */

.bug-message {
    min-height: 20px;

    margin:
        15px 0 0;

    text-align: center;

    font-size: 13px;

    color:
        #94a3b8;
}


.bug-message.success {
    color:
        #4ade80;
}


.bug-message.error {
    color:
        #fb7185;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .topbar {
        height: 62px;

        padding:
            0 15px;
    }

    .bug-page {
        padding:
            25px 14px 50px;
    }

    .bug-box {
        padding:
            23px 18px;

        border-radius:
            16px;
    }

    .bug-heading h1 {
        font-size:
            24px;
    }

}
