* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f5e9, #f5f7f5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Ana alan */
.giris-container {
    width: 100%;
    max-width: 430px;
}

/* Logo ve başlık */
.logo-alani {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    font-size: 55px;
    margin-bottom: 8px;
}

.logo-alani h1 {
    color: #1b5e20;
    font-size: 32px;
    margin-bottom: 8px;
}

.logo-alani p {
    color: #647067;
    font-size: 14px;
    line-height: 1.5;
}

/* Giriş kartı */
.giris-karti {
    background-color: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.10);
}

.giris-karti h2 {
    color: #202720;
    font-size: 23px;
    margin-bottom: 7px;
}

.aciklama {
    color: #777;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Form */
form label {
    display: block;
    color: #404840;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 7px;
}

form input[type="text"],
form input[type="password"] {
    width: 100%;
    height: 48px;
    border: 1px solid #d8ded8;
    border-radius: 9px;
    padding: 0 14px;
    font-size: 15px;
    margin-bottom: 18px;
    outline: none;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.10);
}

/* Beni hatırla ve şifremi unuttum */
.secenekler {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 10px;
}

.secenekler .hatirla {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: normal;
    font-size: 13px;
}

.secenekler a {
    color: #2e7d32;
    font-size: 13px;
    text-decoration: none;
}

.secenekler a:hover {
    text-decoration: underline;
}

/* Giriş butonu */
.giris-btn {
    width: 100%;
    height: 49px;
    border: none;
    border-radius: 9px;
    background-color: #2e7d32;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.giris-btn:hover {
    background-color: #256628;
}

/* Ayırıcı */
.ayirici {
    display: flex;
    align-items: center;
    margin: 22px 0;
    color: #999;
    font-size: 12px;
}

.ayirici::before,
.ayirici::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e1e5e1;
}

.ayirici span {
    padding: 0 12px;
}

/* Yeni işletme */
.isletme-btn {
    width: 100%;
    height: 47px;
    background-color: white;
    color: #2e7d32;
    border: 1px solid #2e7d32;
    border-radius: 9px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.isletme-btn:hover {
    background-color: #f1f8f1;
}

/* Destek */
.destek {
    display: block;
    text-align: center;
    color: #687268;
    font-size: 13px;
    text-decoration: none;
    margin-top: 22px;
}

.destek:hover {
    color: #2e7d32;
}

/* Telefon ve tablet uyumu */
@media (max-width: 500px) {

    body {
        padding: 15px;
        align-items: flex-start;
    }

    .giris-container {
        margin-top: 25px;
    }

    .giris-karti {
        padding: 24px 20px;
    }

    .logo-alani h1 {
        font-size: 27px;
    }

    .logo {
        font-size: 48px;
    }

    .secenekler {
        align-items: flex-start;
    }
}
/* ==================================
   AKILLI ÇOBAN - DASHBOARD
================================== */

.dashboard-body {
    margin: 0;
    padding: 0;
    display: block;
    background: #f4f7f4;
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* SOL MENÜ */

.sidebar {
    width: 240px;
    background: #173f26;
    color: white;
    padding: 25px 15px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-logo {
    font-size: 21px;
    font-weight: bold;
    padding: 5px 10px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 15px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar nav a {
    color: #dce8df;
    text-decoration: none;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.sidebar nav a:hover {
    background: rgba(255,255,255,0.10);
    color: white;
}

.sidebar nav a.aktif {
    background: #2e7d32;
    color: white;
    font-weight: bold;
}


/* ANA İÇERİK */

.dashboard-main {
    width: calc(100% - 240px);
    margin-left: 240px;
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.dashboard-header h1 {
    color: #173f26;
    margin-bottom: 5px;
}

.dashboard-header p {
    color: #777;
}

.kullanici-alani {
    background: white;
    padding: 12px 17px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}


/* İSTATİSTİK KARTLARI */

.dashboard-kartlar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.istatistik-kart {
    background: white;
    padding: 20px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.istatistik-kart > span {
    font-size: 31px;
}

.istatistik-kart h3 {
    font-size: 13px;
    color: #777;
    margin-bottom: 7px;
}

.istatistik-kart strong {
    font-size: 25px;
    color: #1e2a20;
}


/* ALT PANELLER */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.dashboard-panel {
    background: white;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.dashboard-panel h2 {
    font-size: 17px;
    color: #263b2b;
    margin-bottom: 20px;
}

.harita-panel {
    grid-row: span 2;
}


/* GEÇİCİ HARİTA */

.harita-placeholder {
    height: 420px;
    border-radius: 12px;
    background:
        linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)),
        #dcebd8;
    border: 2px dashed #9bbb94;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #688068;
}

.hayvan-nokta {
    position: absolute;
    font-size: 25px;
    background: white;
    padding: 7px;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.nokta1 {
    top: 25%;
    left: 25%;
}

.nokta2 {
    top: 55%;
    left: 60%;
}

.nokta3 {
    top: 70%;
    left: 35%;
}


/* SON OLAYLAR */

.olay {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eeeeee;
}

.olay > span {
    font-size: 20px;
}

.olay strong {
    display: block;
    font-size: 13px;
    color: #3b453d;
    margin-bottom: 5px;
}

.olay small {
    color: #999;
}


/* HAREKET ÖZETİ */

.hareket-ozet {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.hareket-ozet p {
    color: #777;
    font-size: 13px;
    margin-bottom: 5px;
}

.hareket-ozet strong {
    color: #246b2b;
    font-size: 18px;
}


/* TABLET */

@media (max-width: 1100px) {

    .dashboard-kartlar {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .harita-panel {
        grid-row: auto;
    }
}


/* TELEFON */

@media (max-width: 700px) {

    .sidebar {
        width: 70px;
        padding: 20px 8px;
    }

    .sidebar-logo {
        font-size: 0;
        text-align: center;
    }

    .sidebar-logo::before {
        content: "🐑";
        font-size: 30px;
    }

    .sidebar nav a {
        font-size: 0;
        text-align: center;
    }

    .sidebar nav a::first-letter {
        font-size: 20px;
    }

    .dashboard-main {
        margin-left: 70px;
        width: calc(100% - 70px);
        padding: 18px;
    }

    .dashboard-kartlar {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        align-items: flex-start;
        gap: 15px;
    }

    .kullanici-alani {
        display: none;
    }

    .harita-placeholder {
        height: 300px;
    }
}
/* ==================================
   CANLI HARİTA
================================== */

.harita-filtreler {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.harita-filtreler input,
.harita-filtreler select {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d5ddd5;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    outline: none;
}

.harita-filtreler input {
    min-width: 230px;
}

.harita-filtreler input:focus,
.harita-filtreler select:focus {
    border-color: #2e7d32;
}

.canli-harita-panel {
    background: white;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

#canliHarita {
    width: 100%;
    height: 650px;
    border-radius: 10px;
}

@media (max-width: 700px) {

    #canliHarita {
        height: 500px;
    }

    .harita-filtreler {
        flex-direction: column;
    }

    .harita-filtreler input,
    .harita-filtreler select {
        width: 100%;
    }
}
/* ==================================
   TARİH ARALIĞI FİLTRESİ
================================== */

.tarih-filtre {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.tarih-filtre div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tarih-filtre label {
    font-size: 12px;
    font-weight: bold;
    color: #5f6b61;
}

.tarih-filtre input[type="date"] {
    height: 44px;
    padding: 0 10px;
    border: 1px solid #d5ddd5;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    outline: none;
}

.tarih-filtre input[type="date"]:focus {
    border-color: #2e7d32;
}

#tarihFiltreBtn {
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #2e7d32;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#tarihFiltreBtn:hover {
    background: #256628;
}

@media (max-width: 700px) {

    .tarih-filtre {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .tarih-filtre div,
    .tarih-filtre input,
    #tarihFiltreBtn {
        width: 100%;
    }
}
/* ==================================
   HAYVAN DETAY SAYFASI
================================== */

.hayvan-detay-kart {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.hayvan-profil {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eeeeee;
}

.hayvan-avatar {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef7ee;
    border-radius: 50%;
    font-size: 40px;
}

.hayvan-profil h2 {
    color: #173f26;
    margin-bottom: 5px;
}

.hayvan-profil p {
    color: #777;
}

.hayvan-bilgi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bilgi-kart {
    border: 1px solid #e5eae5;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.bilgi-kart > span {
    font-size: 27px;
}

.bilgi-kart small {
    display: block;
    color: #888;
    margin-bottom: 5px;
}

.bilgi-kart strong {
    color: #213b28;
}

.detay-alt-panel {
    margin-top: 25px;
    background: #f6f9f6;
    padding: 20px;
    border-radius: 12px;
}

.detay-alt-panel h3 {
    color: #173f26;
    margin-bottom: 10px;
}

.detay-alt-panel p {
    color: #666;
    margin-bottom: 18px;
}

.geri-btn {
    border: none;
    background: #2e7d32;
    color: white;
    border-radius: 8px;
    padding: 11px 17px;
    cursor: pointer;
    font-weight: bold;
}

.geri-btn:hover {
    background: #256628;
}

@media (max-width: 900px) {

    .hayvan-bilgi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .hayvan-bilgi-grid {
        grid-template-columns: 1fr;
    }

}
/* ==================================
   ALAN YÖNETİMİ
================================== */

.alan-yonetim-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 22px;
    align-items: start;
}


/* FORM PANELİ */

.alan-form-panel {
    background: white;
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.alan-form-panel h2 {
    color: #173f26;
    margin-bottom: 10px;
}

.alan-bilgi {
    background: #eef7ee;
    border-left: 4px solid #2e7d32;
    padding: 12px;
    border-radius: 7px;
    color: #456048;
    font-size: 13px;
    margin-bottom: 22px;
}

.alan-form-panel > label {
    display: block;
    font-weight: bold;
    font-size: 13px;
    color: #465048;
    margin-top: 16px;
    margin-bottom: 7px;
}

.alan-form-panel input,
.alan-form-panel select,
.alan-form-panel textarea {
    width: 100%;
    border: 1px solid #d7ded7;
    border-radius: 8px;
    padding: 11px;
    font-size: 14px;
    outline: none;
    background: white;
}

.alan-form-panel input:focus,
.alan-form-panel select:focus,
.alan-form-panel textarea:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.08);
}

.alan-form-panel textarea {
    min-height: 85px;
    resize: vertical;
}

.alan-iki-kolon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.alan-iki-kolon label {
    display: block;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 7px;
    color: #465048;
}


/* GÜN SEÇİMİ */

.gun-secimi {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.gun-secimi label {
    background: #f2f6f2;
    border: 1px solid #dce4dc;
    border-radius: 7px;
    padding: 7px 9px;
    font-size: 12px;
    cursor: pointer;
}


/* UYARI MESAFESİ */

.birimli-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.birimli-input input {
    flex: 1;
}

.birimli-input span {
    background: #edf2ed;
    padding: 11px;
    border-radius: 8px;
    font-size: 13px;
}


/* KAYDET BUTONU */

.alan-kaydet-btn {
    width: 100%;
    margin-top: 24px;
    height: 48px;
    border: none;
    background: #2e7d32;
    color: white;
    border-radius: 9px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.alan-kaydet-btn:hover {
    background: #256628;
}


/* HARİTA PANELİ */

.alan-harita-panel {
    background: white;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.alan-harita-baslik {
    margin-bottom: 15px;
}

.alan-harita-baslik h2 {
    color: #173f26;
    margin-bottom: 5px;
}

.alan-harita-baslik p {
    color: #777;
    font-size: 13px;
}

#alanHaritasi {
    width: 100%;
    height: 680px;
    border-radius: 11px;
}

.cizim-durumu {
    margin-top: 12px;
    background: #f5f7f5;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #667066;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .alan-yonetim-grid {
        grid-template-columns: 1fr;
    }

    #alanHaritasi {
        height: 550px;
    }
}

@media (max-width: 600px) {

    .alan-iki-kolon {
        grid-template-columns: 1fr;
    }

    #alanHaritasi {
        height: 430px;
    }
}
/* ==================================
   GÜZERGÂH YÖNETİMİ
================================== */

.guzergah-yonetim-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 22px;
    align-items: start;
}

.guzergah-form-panel {
    background: white;
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.guzergah-form-panel h2 {
    color: #173f26;
    margin-bottom: 10px;
}

.guzergah-bilgi {
    background: #eef7ee;
    border-left: 4px solid #2e7d32;
    padding: 12px;
    border-radius: 7px;
    color: #456048;
    font-size: 13px;
    margin-bottom: 22px;
}

.guzergah-form-panel > label {
    display: block;
    font-weight: bold;
    font-size: 13px;
    color: #465048;
    margin-top: 16px;
    margin-bottom: 7px;
}

.guzergah-form-panel input,
.guzergah-form-panel select {
    width: 100%;
    border: 1px solid #d7ded7;
    border-radius: 8px;
    padding: 11px;
    font-size: 14px;
    background: white;
    outline: none;
}

.guzergah-form-panel input:focus,
.guzergah-form-panel select:focus {
    border-color: #2e7d32;
}

.guzergah-ozet {
    background: #f5f8f5;
    margin-top: 22px;
    padding: 17px;
    border-radius: 11px;
}

.guzergah-ozet h3 {
    color: #173f26;
    margin-bottom: 13px;
}

.guzergah-ozet p {
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid #e4e9e4;
}

.guzergah-ozet strong {
    color: #2e6833;
}

.guzergah-harita-panel {
    background: white;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

#guzergahHaritasi {
    width: 100%;
    height: 680px;
    border-radius: 11px;
}

@media (max-width: 1100px) {

    .guzergah-yonetim-grid {
        grid-template-columns: 1fr;
    }

    #guzergahHaritasi {
        height: 550px;
    }
}
/* ==================================
   ALARM MERKEZİ
================================== */

.alarm-ozet-kartlari {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.alarm-ozet-kart {
    background: white;
    border-radius: 13px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.alarm-ozet-kart > span {
    font-size: 29px;
}

.alarm-ozet-kart small {
    display: block;
    color: #777;
    margin-bottom: 4px;
}

.alarm-ozet-kart strong {
    font-size: 24px;
    color: #173f26;
}


/* FİLTRELER */

.alarm-filtreler {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: white;
    padding: 16px;
    border-radius: 13px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.alarm-filtreler input,
.alarm-filtreler select {
    height: 43px;
    padding: 0 12px;
    border: 1px solid #d6ddd6;
    border-radius: 8px;
    background: white;
    outline: none;
    font-size: 14px;
}

.alarm-filtreler input {
    min-width: 230px;
}

.alarm-filtreler input:focus,
.alarm-filtreler select:focus {
    border-color: #2e7d32;
}


/* ALARM LİSTESİ */

.alarm-listesi {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.alarm-karti {
    background: white;
    border-radius: 14px;
    padding: 20px;
    border-left: 6px solid #999;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.alarm-karti.kritik {
    border-left-color: #d32f2f;
}

.alarm-karti.orta {
    border-left-color: #f9a825;
}

.alarm-karti.cozuldu {
    opacity: 0.7;
    border-left-color: #2e7d32;
}


/* ALARM ÜST */

.alarm-ust {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 14px;
    margin-bottom: 15px;
}

.alarm-ust > div {
    display: flex;
    gap: 12px;
    align-items: center;
}

.alarm-ikon {
    font-size: 30px;
}

.alarm-ust h3 {
    color: #25362a;
    margin-bottom: 4px;
}

.alarm-ust p {
    color: #777;
    font-size: 13px;
}

.alarm-seviye {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.kritik-badge {
    background: #ffebee;
    color: #c62828;
}

.orta-badge {
    background: #fff8e1;
    color: #a66d00;
}


/* ALARM BİLGİLERİ */

.alarm-bilgiler {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 15px;
}

.alarm-bilgiler p {
    font-size: 13px;
    color: #555;
}


/* NOT */

.alarm-not {
    width: 100%;
    min-height: 70px;
    border: 1px solid #d8ded8;
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
    outline: none;
    margin-bottom: 13px;
}

.alarm-not:focus {
    border-color: #2e7d32;
}


/* YETKİLİ ATAMA */

.alarm-atama {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 13px;
}

.alarm-atama select {
    height: 39px;
    border: 1px solid #d6ddd6;
    border-radius: 8px;
    padding: 0 10px;
    background: white;
}

.atama-btn {
    height: 39px;
    border: none;
    border-radius: 8px;
    padding: 0 13px;
    cursor: pointer;
    background: #455a64;
    color: white;
    font-weight: bold;
}

.atanan-kullanici {
    font-size: 12px;
    color: #667066;
}


/* BUTONLAR */

.alarm-islemler {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.alarm-btn {
    border: none;
    padding: 9px 13px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.okundu-btn {
    background: #e8f5e9;
    color: #1b5e20;
}

.harita-btn {
    background: #e3f2fd;
    color: #0d47a1;
}

.detay-btn {
    background: #f3e5f5;
    color: #6a1b9a;
}

.cozuldu-btn {
    background: #2e7d32;
    color: white;
}


/* TELEFON / TABLET */

@media (max-width: 1000px) {

    .alarm-ozet-kartlari {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .alarm-ozet-kartlari {
        grid-template-columns: 1fr;
    }

    .alarm-bilgiler {
        grid-template-columns: 1fr;
    }

    .alarm-filtreler {
        flex-direction: column;
    }

    .alarm-filtreler input,
    .alarm-filtreler select {
        width: 100%;
    }

    .alarm-atama {
        flex-direction: column;
        align-items: stretch;
    }
}
/* ==================================
   HAYVAN YÖNETİMİ
================================== */

.yeni-hayvan-btn {
    border: none;
    background: #2e7d32;
    color: white;
    padding: 12px 18px;
    border-radius: 9px;
    font-weight: bold;
    cursor: pointer;
}

.yeni-hayvan-btn:hover {
    background: #256628;
}


/* ÖZET KARTLARI */

.hayvan-ozet-kartlari {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.hayvan-ozet-kart {
    background: white;
    border-radius: 13px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.hayvan-ozet-kart > span {
    font-size: 30px;
}

.hayvan-ozet-kart small {
    display: block;
    color: #777;
    margin-bottom: 5px;
}

.hayvan-ozet-kart strong {
    font-size: 24px;
    color: #173f26;
}


/* FİLTRELER */

.hayvan-filtreler {
    background: white;
    padding: 16px;
    border-radius: 13px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.hayvan-filtreler input,
.hayvan-filtreler select {
    height: 43px;
    border: 1px solid #d6ddd6;
    border-radius: 8px;
    padding: 0 12px;
    background: white;
    font-size: 14px;
    outline: none;
}

.hayvan-filtreler input {
    min-width: 240px;
}

.hayvan-filtreler input:focus,
.hayvan-filtreler select:focus {
    border-color: #2e7d32;
}


/* TABLO */

.hayvan-tablo-panel {
    background: white;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.tablo-responsive {
    overflow-x: auto;
}

.hayvan-tablosu {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
}

.hayvan-tablosu th {
    background: #f4f8f4;
    color: #38503d;
    padding: 13px;
    text-align: left;
    font-size: 13px;
}

.hayvan-tablosu td {
    padding: 13px;
    border-bottom: 1px solid #eeeeee;
    font-size: 13px;
    color: #444;
}

.hayvan-tablosu tr:hover {
    background: #fafcfa;
}


/* DURUM */

.durum-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.aktif-badge {
    background: #e8f5e9;
    color: #1b5e20;
}

.pasif-badge {
    background: #eeeeee;
    color: #666;
}


/* TABLO BUTONLARI */

.islem-hucleri {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.mini-btn {
    border: none;
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.mini-btn.detay {
    background: #e3f2fd;
    color: #0d47a1;
}

.mini-btn.duzenle {
    background: #fff8e1;
    color: #8a6500;
}

.mini-btn.pasif {
    background: #ffebee;
    color: #b71c1c;
}

.mini-btn.konum {
    background: #f3e5f5;
    color: #6a1b9a;
}


/* HAYVAN FORMU */

.hayvan-form-panel {
    background: white;
    margin-top: 22px;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.hayvan-form-panel.gizli {
    display: none;
}

.hayvan-form-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hayvan-form-baslik h2 {
    color: #173f26;
}

.form-kapat-btn {
    border: none;
    background: #eeeeee;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.hayvan-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hayvan-form-grid label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 7px;
    color: #465048;
}

.hayvan-form-grid input,
.hayvan-form-grid select {
    width: 100%;
    height: 44px;
    border: 1px solid #d6ddd6;
    border-radius: 8px;
    padding: 0 11px;
    background: white;
    outline: none;
}

.hayvan-form-grid input:focus,
.hayvan-form-grid select:focus {
    border-color: #2e7d32;
}

.hayvan-kaydet-btn {
    margin-top: 22px;
    border: none;
    background: #2e7d32;
    color: white;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: bold;
    cursor: pointer;
}

.hayvan-kaydet-btn:hover {
    background: #256628;
}


@media (max-width: 1000px) {

    .hayvan-ozet-kartlari {
        grid-template-columns: repeat(2, 1fr);
    }

    .hayvan-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .hayvan-ozet-kartlari {
        grid-template-columns: 1fr;
    }

    .hayvan-form-grid {
        grid-template-columns: 1fr;
    }

    .hayvan-filtreler {
        flex-direction: column;
    }

    .hayvan-filtreler input,
    .hayvan-filtreler select {
        width: 100%;
    }
}
/* ==================================
   KONUM GEÇMİŞİ
================================== */

.konum-ozet-kartlari {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.konum-ozet-kart {
    background: white;
    border-radius: 13px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.konum-ozet-kart > span {
    font-size: 28px;
}

.konum-ozet-kart small {
    display: block;
    color: #777;
    margin-bottom: 5px;
}

.konum-ozet-kart strong {
    color: #173f26;
    font-size: 19px;
}


/* TARİH FİLTRESİ */

.konum-filtre-panel {
    background: white;
    padding: 16px;
    border-radius: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.konum-filtre-panel div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.konum-filtre-panel label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
}

.konum-filtre-panel input {
    height: 43px;
    padding: 0 11px;
    border: 1px solid #d6ddd6;
    border-radius: 8px;
}

#gecmisFiltreBtn {
    height: 43px;
    padding: 0 17px;
    border: none;
    border-radius: 8px;
    background: #2e7d32;
    color: white;
    font-weight: bold;
    cursor: pointer;
}


/* HARİTA + LİSTE */

.konum-gecmisi-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.konum-harita-panel,
.konum-liste-panel {
    background: white;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.konum-panel-baslik {
    margin-bottom: 15px;
}

.konum-panel-baslik h2 {
    color: #173f26;
    margin-bottom: 5px;
}

.konum-panel-baslik p {
    color: #777;
    font-size: 13px;
}

#konumGecmisiHarita {
    width: 100%;
    height: 600px;
    border-radius: 10px;
}


/* KONUM KAYITLARI */

.konum-kayit-listesi {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.konum-kayit {
    border-left: 4px solid #2e7d32;
    background: #f5f8f5;
    border-radius: 8px;
    padding: 12px;
}

.konum-kayit strong {
    display: block;
    color: #173f26;
    margin-bottom: 5px;
}

.konum-kayit span {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 3px;
}

.konum-kayit.son {
    border-left-color: #d32f2f;
    background: #fff5f5;
}


@media (max-width: 1000px) {

    .konum-ozet-kartlari {
        grid-template-columns: repeat(2, 1fr);
    }

    .konum-gecmisi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .konum-ozet-kartlari {
        grid-template-columns: 1fr;
    }

    .konum-filtre-panel {
        flex-direction: column;
        align-items: stretch;
    }

    #konumGecmisiHarita {
        height: 430px;
    }
}
/* ==================================
   TASMA YÖNETİMİ
================================== */

.tasma-ozet-kartlari {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.tasma-ozet-kart {
    background: white;
    border-radius: 13px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.tasma-ozet-kart > span {
    font-size: 30px;
}

.tasma-ozet-kart small {
    display: block;
    color: #777;
    margin-bottom: 5px;
}

.tasma-ozet-kart strong {
    color: #173f26;
    font-size: 24px;
}


/* FİLTRELER */

.tasma-filtreler {
    background: white;
    padding: 16px;
    border-radius: 13px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.tasma-filtreler input,
.tasma-filtreler select {
    height: 43px;
    border: 1px solid #d6ddd6;
    border-radius: 8px;
    padding: 0 12px;
    background: white;
    font-size: 14px;
    outline: none;
}

.tasma-filtreler input {
    min-width: 240px;
}

.tasma-filtreler input:focus,
.tasma-filtreler select:focus {
    border-color: #2e7d32;
}


/* PİL GÖSTERGESİ */

.pil-kapsayici {
    min-width: 100px;
}

.pil-yazi {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 5px;
}

.pil-cubuk {
    height: 8px;
    width: 100%;
    background: #e4e8e4;
    border-radius: 10px;
    overflow: hidden;
}

.pil-doluluk {
    height: 100%;
    border-radius: 10px;
    background: #2e7d32;
}

.pil-doluluk.orta-pil {
    background: #f9a825;
}

.pil-doluluk.dusuk-pil {
    background: #d32f2f;
}


/* TASMA DURUM BADGELERİ */

.tasma-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.tasma-aktif {
    background: #e8f5e9;
    color: #1b5e20;
}

.tasma-pasif {
    background: #eeeeee;
    color: #666;
}

.tasma-dusukpil {
    background: #ffebee;
    color: #c62828;
}

.tasma-sarj {
    background: #e3f2fd;
    color: #1565c0;
}

.tasma-bakim {
    background: #fff3e0;
    color: #e65100;
}

.tasma-kayip {
    background: #fce4ec;
    color: #ad1457;
}


/* BAĞLANTI */

.baglanti-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.baglanti-var {
    background: #e8f5e9;
    color: #1b5e20;
}

.baglanti-yok {
    background: #ffebee;
    color: #b71c1c;
}


/* TASMA BUTONLARI */

.mini-btn.tasma-duzenle {
    background: #fff8e1;
    color: #8a6500;
}

.mini-btn.tasma-cikar {
    background: #ffebee;
    color: #b71c1c;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .tasma-ozet-kartlari {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .tasma-ozet-kartlari {
        grid-template-columns: 1fr;
    }

    .tasma-filtreler {
        flex-direction: column;
    }

    .tasma-filtreler input,
    .tasma-filtreler select {
        width: 100%;
    }
}
/* ==================================
   ÇEVRİMİÇİ / ÇEVRİM DIŞI DURUMU
================================== */

#baglantiDurumu {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;

    min-width: 190px;
    padding: 12px 16px;

    border-radius: 10px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.18);

    display: flex;
    flex-direction: column;
    gap: 4px;

    font-size: 13px;
}

#baglantiDurumu strong {
    font-size: 14px;
}

#baglantiDurumu span {
    font-size: 11px;
}

.baglanti-online {
    background: #e8f5e9;
    border: 1px solid #81c784;
    color: #1b5e20;
}

.baglanti-offline {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
}