﻿.admin-container {
    display: flex;
    height: 100vh;
    background: #f8f9fc;
}

/* SIDEBAR */
.admin-sidebar {
    width: 260px;
    background: #0e1d34;
    color: white;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    text-align: center;
    margin-bottom: 30px;
}

    .admin-logo img {
        width: 50px;
        filter: brightness(0) invert(1);
    }

    .admin-logo span {
        display: block;
        margin-top: 10px;
        font-weight: 600;
        font-size: 18px;
    }

.admin-menu {
    display: flex;
    flex-direction: column;
}

.admin-link {
    padding: 14px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dce3f5;
    text-decoration: none;
    transition: 0.2s;
}

    .admin-link:hover,
    .admin-link.active {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

/* MAIN AREA */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: #fff;
    padding: 18px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .admin-header h2 {
        margin: 0;
        font-size: 22px;
        color: #0e1d34;
    }

.admin-content {
    padding: 30px;
    overflow-y: auto;
}


.admin-main .admin-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #fff !important;
    height: 70px !important;
    padding: 15px 25px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 99;
}


/*login*/

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f1f5f9 !important;
}

.login-box {
    background: #fff;
    padding: 40px;
    width: 360px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    text-align: center;
}

    .login-box h3 {
        color: #0e1d34;
        margin-bottom: 10px;
    }

.login-sub {
    color: #6c7a91;
    margin-bottom: 25px;
}

/* Label */
.login-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0e1d34;
}

/* Input */
.login-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
}

    .login-input:focus {
        border-color: #0e1d34;
        outline: none;
    }

/* Button */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #0e1d34;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

    .login-btn:hover {
        background: #102544;
    }

/* Error text */
.login-error {
    margin-top: 12px;
    color: red;
    font-weight: 600;
}

/*DUYURU*/

.admin-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-btn {
    background: #0e1d34;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

    .admin-btn:hover {
        opacity: 0.9;
    }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th, .admin-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }

    .admin-table th {
        background: #f5f6fa;
        font-weight: 600;
    }

.table-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 6px;
}

    .table-btn.edit {
        background: #0e1d34;
        color: #fff;
    }

    .table-btn.delete {
        background: #c62828;
        color: #fff;
    }

    /* cari liste*/

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.badge {
    font-size: 0.75rem;
}

/* ekstre*/


/* Scroll alanı */
.cari-table-wrapper {
    max-height: 420px;
    overflow-y: auto;
    border-radius: 10px;
}

/* Sticky header */
.cari-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* ✅ ZEBRA: tr değil, hücreleri boya */
.cari-table tbody tr:nth-of-type(odd) > * {
    background-color: #fcfcfd !important;
}

.cari-table tbody tr:nth-of-type(even) > * {
    background-color: #f6f7f9 !important;
}

/* Hover (zebra’nın üstüne gelecek) */
.cari-table tbody tr:hover > * {
    background-color: #eef3ff !important;
}

/* Kompakt görünüm */
.cari-table td {
    font-size: 0.8rem;
    padding: 6px 8px;
    white-space: nowrap;
}

.cari-table th {
    font-size: 0.75rem;
    padding: 6px 8px;
}

/* Alt toplam satırı */
.cari-toplam-row > * {
    position: sticky;
    bottom: 0;
    background-color: #e9ecef;
    border-top: 2px solid #adb5bd;
    font-size: 0.85rem;
}

/* Zebra ile çakışmasın */
.cari-toplam-row:hover > * {
    background-color: #e9ecef !important;
}


/* side menu mutabakat tarafı*/

.mutabakat-submenu {
    display: flex;
    flex-direction: column;
    margin-left: 28px;
    margin-top: 6px;
    gap: 4px;
}

.admin-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #cfd8dc;
    text-decoration: none;
    border-radius: 6px;
}

    .admin-sublink:hover,
    .admin-sublink.active {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }



/* ================================
   ERP STYLE MUTABAKAT MENU
================================ */

.admin-group {
    margin-top: 10px;
}

.admin-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    color: #e6ebf0;
    border-radius: 8px;
    transition: background 0.25s;
}

    .admin-group-header:hover {
        background: rgba(255,255,255,0.08);
    }

    .admin-group-header i {
        margin-right: 8px;
    }

    .admin-group-header .arrow {
        transition: transform 0.3s ease;
    }

        .admin-group-header .arrow.open {
            transform: rotate(180deg);
        }

/* SUB MENU */
.admin-group-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-left: 8px;
}

    .admin-group-body.open {
        max-height: 200px;
    }

/* SUB LINKS */
.admin-sublink {
    display: block;
    padding: 8px 14px 8px 36px;
    font-size: 0.9rem;
    color: #cfd8e3;
    text-decoration: none;
    border-radius: 6px;
    margin: 4px 0;
    transition: all 0.2s;
}

    .admin-sublink i {
        margin-right: 6px;
    }

    .admin-sublink:hover {
        background: rgba(13,110,253,0.15);
        color: #fff;
    }

    /* ACTIVE */
    .admin-sublink.active {
        background: linear-gradient(90deg,#0d6efd,#0b5ed7);
        color: #fff;
        font-weight: 600;
    }


    /* admin üst header*/

.admin-topbar {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.topbar-left .page-title {
    margin: 0;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    font-size: 14px;
    color: #374151;
}

.company-badge {
    background: #eef2ff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #4338ca;
}