* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}


/* =====================================================
   GENEL
===================================================== */

.hidden {
    display: none !important;
}

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


/* =====================================================
   GİRİŞ EKRANI
===================================================== */

#loginScreen {
    position: fixed;
    inset: 0;

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

    padding: 20px;

    background:
        radial-gradient(
            circle at top,
            #1e3a5f 0%,
            #0f172a 55%,
            #020617 100%
        );
}


.loginBox {
    width: 100%;
    max-width: 390px;

    padding: 32px;

    background: rgba(17, 24, 39, 0.96);

    border: 1px solid #334155;

    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55);

    text-align: center;
}


.loginLogo {
    font-size: 54px;
    margin-bottom: 8px;
}


.loginBox h1 {
    margin: 0;

    font-size: 25px;
    letter-spacing: 1px;

    color: #f8fafc;
}


.loginBox h2 {
    margin: 4px 0 8px;

    font-size: 17px;
    letter-spacing: 3px;

    color: #94a3b8;
}


.loginInfo {
    margin: 0 0 25px;

    font-size: 13px;

    color: #94a3b8;
}


.loginBox label {
    display: block;

    margin: 13px 0 7px;

    text-align: left;

    font-size: 13px;
    font-weight: 700;

    color: #cbd5e1;
}


#loginUser,
#loginPin {
    width: 100%;

    padding: 13px;

    border: 1px solid #475569;

    border-radius: 9px;

    background: #0f172a;

    color: white;

    outline: none;
}


#loginUser:focus,
#loginPin:focus {
    border-color: #60a5fa;
}


#loginPin {
    text-align: center;

    font-size: 21px;

    letter-spacing: 7px;
}


#loginButton {
    width: 100%;

    margin-top: 22px;

    padding: 14px;

    border: 0;

    border-radius: 9px;

    background: #2563eb;

    color: white;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}


#loginButton:hover {
    filter: brightness(1.15);
}


#loginButton:disabled {
    opacity: 0.6;

    cursor: wait;
}


#loginError {
    min-height: 20px;

    margin-top: 12px;

    color: #f87171;

    font-size: 13px;
}


/* =====================================================
   ÜST MENÜ
===================================================== */

header {
    height: 64px;

    padding: 0 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #111827;

    border-bottom: 1px solid #334155;
}


header b {
    font-size: 19px;
}


#status {
    margin-left: 18px;

    font-size: 12px;

    color: #f59e0b;
}


.headerUser {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 13px;
}


#currentUser {
    color: #cbd5e1;
}


.logoutButton {
    padding: 8px 12px;

    border: 1px solid #475569;

    border-radius: 7px;

    background: #1e293b;

    color: white;

    cursor: pointer;
}


.logoutButton:hover {
    background: #334155;
}


/* =====================================================
   ANA EKRAN
===================================================== */

main {
    display: grid;

    grid-template-columns: 1fr 390px;

    height: calc(100vh - 64px);
}


.mapbox {
    height: 100%;

    padding: 10px;
}


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

    border-radius: 10px;

    overflow: hidden;
}


.leaflet-container {
    background: #cbd5e1;
}


/* =====================================================
   SAĞ PANEL
===================================================== */

aside {
    padding: 16px;

    background: #111827;

    border-left: 1px solid #334155;

    overflow: auto;
}


aside h2 {
    font-size: 15px;

    margin: 8px 0 12px;
}


.buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;
}


.buttons button,
.yon {
    border: 0;

    border-radius: 8px;

    padding: 14px;

    color: white;

    font-weight: 700;

    cursor: pointer;

    transition: 0.15s;
}


.buttons button:hover,
.yon:hover {
    filter: brightness(1.15);
}


.tas {
    background: #16a34a;
}


.haf {
    background: #dc2626;
}


.stok {
    background: #2563eb;
}


.a1 {
    background: #d97706;
}


.a2 {
    background: #ea580c;
}


.a3 {
    background: #991b1b;
}


.yon {
    width: 100%;

    margin-top: 10px;

    background: #7c3aed;
}


textarea {
    width: 100%;

    height: 80px;

    margin-top: 14px;

    padding: 10px;

    background: #0f172a;

    color: white;

    border: 1px solid #475569;

    border-radius: 8px;

    resize: vertical;

    outline: none;
}


textarea:focus {
    border-color: #60a5fa;
}


/* =====================================================
   BİLDİRİMLER
===================================================== */

.event {
    padding: 10px;

    margin: 7px 0;

    background: #1e293b;

    border-left: 5px solid #475569;

    border-radius: 7px;

    font-size: 13px;
}


.event small {
    color: #94a3b8;
}


/* =====================================================
   GPS NOKTASI
===================================================== */

.gpsPulse {
    animation: gpsPulse 1.2s infinite;
}


@keyframes gpsPulse {

    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(1.45);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* =====================================================
   MOBİL
===================================================== */

@media (max-width: 900px) {

    header {
        height: auto;

        min-height: 64px;

        padding: 10px;

        gap: 8px;
    }


    header b {
        font-size: 15px;
    }


    #status {
        display: block;

        margin-left: 0;

        margin-top: 3px;
    }


    .headerUser {
        font-size: 11px;
    }


    main {
        grid-template-columns: 1fr;

        height: auto;
    }


    .mapbox {
        height: 55vh;

        min-height: 350px;
    }


    aside {
        border-left: 0;

        border-top: 1px solid #334155;
    }
}


@media (max-width: 500px) {

    .loginBox {
        padding: 25px 20px;
    }


    .loginLogo {
        font-size: 46px;
    }


    .loginBox h1 {
        font-size: 21px;
    }


    .loginBox h2 {
        font-size: 15px;
    }


    .headerUser #currentUser {
        display: none;
    }


    .mapbox {
        height: 50vh;
    }


    .buttons button,
    .yon {
        padding: 12px 8px;

        font-size: 12px;
    }
}