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

* { box-sizing: border-box; }

body {
    margin: 0;
    padding-top: 88px;   /* header sabit olduğu için içerik aşağı insin */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f4f4;
    color: #111;
}

a {
    color: #3b3bff;
    text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* =========================
   HEADER & MENÜ
========================= */

.site-header {
    background: linear-gradient(135deg, #0a1f44, #123a6f);
    color: white;
    padding: 4px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);

    /* SABİT HEADER */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;          /* full width */
    width: 100%;
    z-index: 10000;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav bell";
    align-items: center;
    column-gap: 16px;
    padding: 4px 12px;
}

/* Brand (sol) */
.brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Logo + Yazı linki */
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}
.brand-link:hover {
    text-decoration: none;
    color: #fff;
}

/* Yazı (EKİNOKS Portal) */
.brand-title-text {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

/* Eğer eski .brand-title kullanıyorsan */
.brand-title {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

/* Logo boyutu (DEĞİŞTİRMEDİM) */
.brand-logo {
    max-height: 52px !important;
    width: auto;
    display: block;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.brand-link,
.brand-link:hover,
.brand {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Menü toggle butonu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    margin-right: 10px;
}

/* Menü */
.main-nav {
    grid-area: nav;
    display: flex;
    align-items: stretch;
    gap: 18px;
    flex-wrap: nowrap;
    min-width: 0;
    justify-content: center;
    overflow: hidden;
    padding-left: 12px;
}

/* Header içindeki linkler */
.site-header .main-nav a {
    color: #e2e8f0;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    height: 100%;
    min-height: 38px;
    font-size: 14px;
    transition: 0.25s ease;
    white-space: normal;
    max-width: 110px;
}

.mobile-bell {
    grid-area: bell;
    justify-self: end;
}
.site-header .main-nav a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    text-decoration: none;
}


/* =========================
   MOBİL MENÜ
========================= */

@media (max-width: 1400px) {
    body { padding-top: 118px; }

    .header-inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "brand bell bell"
            "nav nav nav";
        row-gap: 6px;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    .site-header .main-nav a {
        padding: 6px 8px;
        font-size: 13px;
        min-height: 34px;
    }
}

@media (max-width: 1200px) {
    .site-header .main-nav a {
        font-size: 12.5px;
        padding: 6px 6px;
    }
    .main-nav { gap: 4px 8px; }
}

@media (max-width: 768px) {

    /* Mobilde header yüksekliği farklıysa body padding’i de ayarla */
    body { padding-top: 88px; } /* header ile uyumlu */
    

    .header-inner {
        flex-wrap: wrap;
        position: relative; /* zili sabitlemek için */
    }

    .menu-toggle { display: block; }

    .main-nav {
        display: none;
        background: linear-gradient(135deg, #0a1f44, #123a6f);
        padding: 8px 8px 10px;
        width: 100%;
        position: relative;
        z-index: 10001;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-flow: row;
        gap: 4px 6px;
    }

    .main-nav.open { display: grid !important; }

    .main-nav a {
        width: 100%;
        padding: 6px 4px;
        min-height: 40px;
        line-height: 1.1;
        font-size: 12px;
    }

    /* Mobil logo (DEĞİŞTİRMEDİM) */
    .brand-logo { max-height: 47px !important; }

    /* Mobilde yazıyı istersen gizle */
    /* .brand-title-text { display: none; } */
}


/* =========================
   LANDSCAPE MOBİL (YAN ÇEVİRİNCE)
========================= */

@media (max-width: 992px) and (orientation: landscape){
    .site-header{ padding: 6px 0; }
    .header-inner{ padding: 6px 12px; }

    /* Logo (DEĞİŞTİRMEDİM) */
    .brand-logo{ max-height: 34px !important; }

    .brand-title-text{ font-size: 16px; }
    .site-header .main-nav a{ padding: 8px 10px; }

    /* Landscape’te header kısalınca body boşluğu da kısalsın */
    body{ padding-top: 92px; }
    
    .site-header .main-nav a {
    font-size: 90%;
}
}


/* =========================
   İŞLEM HÜCRELERİ
========================= */

.actions-cell {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
}

.action-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    opacity: 0.85;
    transition: 0.2s ease;
}

.action-icon:hover {
    opacity: 1;
    transform: scale(1.07);
}

.delete-icon { color: #b60000; }

/* Mobilde sadece ikon kalsın */
@media (max-width: 768px) {
    .action-icon .action-label { display: none; }
}


/* =========================
   BAŞLIKLAR
========================= */

h1 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 28px;
}
h2 {
    margin-top: 20px;
    font-size: 22px;
}


/* =========================
   TABLO
========================= */

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-top: 15px;
}

.table th,
.table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.table th {
    background-color: #f1f1f1;
    text-align: left;
    font-weight: 600;
}


/* =========================
   BUTONLAR
========================= */

.btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e0e0e0;
    border-radius: 4px;
    color: #111;
    font-size: 14px;
    margin-right: 5px;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

@media (max-width: 600px){
  .btn{
    padding: 5px 8px;
    font-size: 12px;
    margin-right: 4px;
  }
}


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

.form-group { margin-bottom: 12px; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-control,
textarea.form-control {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea.form-control { resize: vertical; }


/* =========================
   BİLDİRİM ZİLİ
========================= */

.mobile-bell {
    display: inline-flex;
    align-items: center;
    position: relative;
    font-size: 22px;
    text-decoration: none;
    color: #ffffff;
    margin-left: 10px;
}

.notif-badge {
    background: #d10000;
    color: #ffffff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 16px;
    position: absolute;
    top: -6px;
    right: -10px;
}

/* Mobilde zili sağ üste sabitle */
@media (max-width: 768px) {
    .mobile-bell {
        position: absolute;
        top: 14px;
        right: 20px;
        margin-left: 0;
    }
}


/* =========================
   MESAJ DETAYI KUTUSU
========================= */

.message-body-box {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background: #ffffff;
    min-height: 6.5em;
    white-space: normal;
    text-align: left;
}


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

footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 13px;
    margin-top: 20px;

    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.footer-hr {
    border: 0;
    border-top: 1px solid #7a7a7a;
    margin: 12px 0;
}


/* =========================
   FİRMA MENÜSÜ AÇILIR MENÜ
========================= */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 15px;
    padding: 10px 12px;
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown-toggle:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 180px;
    background: #0a1f44;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.35);
    z-index: 999;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: #e2e8f0;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    text-decoration: none;
}

/* Hover ile açılma */
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

/* Mobilde de düzgün dursun */
@media (max-width: 768px) {
    .nav-dropdown { width: 100%; }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding-left: 10px;
    }

    .nav-dropdown-menu a { padding-left: 4px; }
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

.site-header {
  width: 100%;
  max-width: 100vw;
}


/* Mobilde İşe Giriş sütununu gizle */
@media (max-width: 768px) {
  .col-hide-mobile {
    display: none;
  }
}


.desc-text{
  font-size: 12px;
  color: #444;
  line-height: 1.4;
}
@media (max-width: 600px){
  .desc-text{ font-size: 10px; }
}
