

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   BODY
========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    background: #f5f7fb;
    color: #151b29;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(224, 233, 250, 0.55),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(231, 235, 252, 0.65),
            transparent 35%
        ),
        #f7f8fc;
}


/* =========================================================
   BACKGROUND SHAPES
========================================================= */

.bg-shape {
    position: absolute;

    border-radius: 50%;

    background: rgba(221, 229, 248, 0.55);

    pointer-events: none;
}

.bg-shape-top {
    width: 330px;
    height: 330px;

    top: -165px;
    right: -70px;
}

.bg-shape-bottom {
    width: 310px;
    height: 310px;

    bottom: -170px;
    left: -105px;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    position: relative;
    z-index: 2;

    width: 350px;

    padding: 34px 34px 25px;

    background: rgba(255, 255, 255, 0.96);

    border-radius: 18px;

    box-shadow:
        0 25px 60px rgba(24, 36, 60, 0.10),
        0 5px 20px rgba(24, 36, 60, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.8);
}


/* =========================================================
   LOGO
========================================================= */
.logo-area {
     display: flex; 
     justify-content: center; 
     align-items: center; 
     margin-bottom: 12px;
} 
.funa-logo { 
display: block; 
width: 75px; height: auto; 
object-fit: contain; 
}

/* =========================================================
   HEADER
========================================================= */

.login-header {
    text-align: center;

    margin-top: 6px;
    margin-bottom: 31px;
}

.login-header h1 {
    font-size: 20px;
    line-height: 1.3;

    font-weight: 700;

    color: #151b29;

    margin-bottom: 7px;
}

.login-header p {
    font-size: 10px;

    color: #8992a3;

    line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 10px;

    font-weight: 600;

    color: #606978;
}


/* =========================================================
   INPUT
========================================================= */

.input-wrapper {
    position: relative;

    width: 100%;
}

.input-wrapper input {
    width: 100%;
    height: 44px;

    padding: 0 40px;

    border: 1px solid #dfe3e8;

    border-radius: 10px;

    outline: none;

    background: #fff;

    color: #202633;

    font-family: "Inter", sans-serif;
    font-size: 11px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #aab1bd;
}

.input-wrapper input:focus {
    border-color: #9ba8bd;

    box-shadow:
        0 0 0 3px rgba(104, 122, 153, 0.08);
}


/* Input Icon */

.input-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 13px;

    color: #8b939f;

    pointer-events: none;

    z-index: 1;
}

.password-icon {
    color: #d8ad45;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    padding: 4px;

    color: #777f8b;

    cursor: pointer;

    font-size: 11px;
}

.password-toggle:hover {
    color: #151b29;
}


/* =========================================================
   FORM OPTIONS
========================================================= */

.form-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: -1px;
    margin-bottom: 22px;
}

.remember-me {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 9px;

    color: #7c8491;

    cursor: pointer;

    user-select: none;
}

.remember-me input {
    display: none;
}

.custom-checkbox {
    width: 13px;
    height: 13px;

    border: 1px solid #bfc5cd;

    border-radius: 2px;

    background: #fff;

    position: relative;
}

.remember-me input:checked + .custom-checkbox {
    background: #151b29;

    border-color: #151b29;
}

.remember-me input:checked + .custom-checkbox::after {
    content: "";

    position: absolute;

    width: 4px;
    height: 7px;

    left: 4px;
    top: 1px;

    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;

    transform: rotate(45deg);
}

.forgot-password {
    font-size: 9px;

    font-weight: 600;

    color: #3571d3;

    text-decoration: none;

    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #1e55ae;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    width: 100%;
    height: 44px;

    border: 0;

    border-radius: 9px;

    background: #111827;

    color: #fff;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    font-family: "Inter", sans-serif;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.login-button i {
    font-size: 10px;

    transition: transform 0.2s ease;
}

.login-button:hover {
    background: #1c2433;

    box-shadow:
        0 8px 18px rgba(17, 24, 39, 0.15);
}

.login-button:hover i {
    transform: translateX(3px);
}

.login-button:active {
    transform: scale(0.99);
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    margin-top: 25px;

    text-align: center;
}

.footer-line {
    width: 100%;
    height: 1px;

    background: #edf0f3;

    margin-bottom: 17px;
}

.login-footer p {
    font-size: 8px;

    color: #a1a9b5;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .login-page {
        padding: 20px;
    }

    .login-card {
        width: 100%;
        max-width: 370px;

        padding: 32px 27px 24px;

        border-radius: 17px;
    }

    .bg-shape-top {
        width: 240px;
        height: 240px;

        top: -130px;
        right: -100px;
    }

    .bg-shape-bottom {
        width: 230px;
        height: 230px;

        bottom: -130px;
        left: -100px;
    }

}

@media (max-width: 380px) {

    .login-card {
        padding: 28px 22px 22px;
    }

    .login-header h1 {
        font-size: 18px;
    }

}




/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    background: #f6f8fc;
    color: #151b29;
}


/* =========================================================
   LAYOUT
========================================================= */

.admin-layout {
    min-height: 100vh;
    display: flex;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    width: 250px;
    min-height: 100vh;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    background: #111827;

    display: flex;
    flex-direction: column;

    z-index: 100;
}


/* Logo */

.sidebar-logo {
    height: 85px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-logo img {
    width: 72px;
    height: auto;

    filter: brightness(0) invert(1);
}


/* Navigation */

.sidebar-nav {
    padding: 25px 15px;

    flex: 1;
}

.nav-title {
    padding: 0 12px;

    margin-bottom: 10px;

    font-size: 10px;
    font-weight: 600;

    color: #6f7888;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.nav-item {
    display: flex;
    align-items: center;

    gap: 13px;

    width: 100%;

    padding: 12px 13px;

    margin-bottom: 4px;

    border-radius: 8px;

    color: #9ba4b4;

    text-decoration: none;

    font-size: 12px;
    font-weight: 500;

    transition: 0.2s ease;
}

.nav-item i {
    width: 18px;

    text-align: center;

    font-size: 14px;
}

.nav-item:hover {
    background: rgba(255,255,255,0.06);

    color: #fff;
}

.nav-item.active {
    background: #fff;

    color: #111827;
}


/* Sidebar bottom */

.sidebar-bottom {
    padding: 15px;

    border-top: 1px solid rgba(255,255,255,0.07);
}

.sidebar-user {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111827;

    font-size: 12px;
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-info strong {
    display: block;

    color: #fff;

    font-size: 11px;
}

.sidebar-user-info span {
    display: block;

    color: #737d8e;

    font-size: 9px;

    margin-top: 2px;
}


/* =========================================================
   MAIN
========================================================= */

.main-content {
    width: calc(100% - 250px);

    margin-left: 250px;

    min-height: 100vh;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 70px;

    background: #fff;

    border-bottom: 1px solid #e9edf3;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;
}

.page-title h1 {
    font-size: 18px;

    font-weight: 700;

    color: #151b29;
}

.page-title p {
    margin-top: 3px;

    color: #929aaa;

    font-size: 10px;
}


/* Topbar right */

.topbar-right {
    display: flex;
    align-items: center;

    gap: 20px;
}

.notification {
    position: relative;

    color: #687282;

    font-size: 16px;

    cursor: pointer;
}

.notification span {
    position: absolute;

    top: -5px;
    right: -5px;

    width: 7px;
    height: 7px;

    background: #e44b4b;

    border-radius: 50%;

    border: 2px solid #fff;
}

.topbar-profile {
    display: flex;
    align-items: center;

    gap: 10px;

    cursor: pointer;
}

.profile-avatar {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #111827;

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 600;
}

.profile-info strong {
    display: block;

    font-size: 10px;
}

.profile-info span {
    display: block;

    font-size: 8px;

    color: #929aaa;

    margin-top: 2px;
}


/* =========================================================
   CONTENT
========================================================= */

.page-content {
    padding: 30px;
}


/* =========================================================
   STAT CARDS
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 25px;
}

.stat-card {
    background: #fff;

    border: 1px solid #e9edf3;

    border-radius: 12px;

    padding: 20px;

    display: flex;
    align-items: center;

    gap: 15px;
}

.stat-icon {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f0f3f8;

    color: #202939;

    font-size: 16px;
}

.stat-card h3 {
    font-size: 20px;

    font-weight: 700;
}

.stat-card p {
    color: #8e97a5;

    font-size: 9px;

    margin-top: 4px;
}


/* =========================================================
   CARDS
========================================================= */

.card {
    background: #fff;

    border: 1px solid #e9edf3;

    border-radius: 12px;

    padding: 22px;
}

.card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 13px;

    font-weight: 700;
}

.card-header p {
    color: #929aaa;

    font-size: 9px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    border: 0;

    border-radius: 7px;

    padding: 10px 15px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    font-family: inherit;

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    text-decoration: none;
}

.btn-primary {
    background: #111827;

    color: #fff;
}

.btn-primary:hover {
    background: #1f2937;
}

.btn-light {
    background: #f1f3f6;

    color: #3c4554;
}

.btn-danger {
    background: #fff0f0;

    color: #d34343;
}

.btn-success {
    background: #edf8f2;

    color: #268653;
}


/* =========================================================
   TABLE
========================================================= */

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;

    border-collapse: collapse;
}

.data-table th {
    text-align: left;

    padding: 12px 10px;

    border-bottom: 1px solid #e9edf3;

    color: #858e9d;

    font-size: 9px;

    font-weight: 600;
}

.data-table td {
    padding: 14px 10px;

    border-bottom: 1px solid #f0f2f5;

    color: #454d5b;

    font-size: 10px;
}

.data-table tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    position: relative;

    width: 250px;
}

.search-box i {
    position: absolute;

    left: 12px;
    top: 50%;

    transform: translateY(-50%);

    color: #929aaa;

    font-size: 11px;
}

.search-box input {
    width: 100%;

    height: 36px;

    padding: 0 12px 0 34px;

    border: 1px solid #e1e5eb;

    border-radius: 7px;

    outline: none;

    font-family: inherit;

    font-size: 10px;
}

.search-box input:focus {
    border-color: #a8b1bf;
}


/* =========================================================
   STATUS
========================================================= */

.status {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 20px;

    font-size: 8px;

    font-weight: 600;
}

.status-active {
    background: #edf8f2;

    color: #268653;
}

.status-passive {
    background: #f1f3f6;

    color: #737d8b;
}


/* =========================================================
   CUSTOMER
========================================================= */

.customer-header {
    background: #fff;

    border: 1px solid #e9edf3;

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 20px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.customer-info {
    display: flex;
    align-items: center;

    gap: 14px;
}

.customer-avatar {
    width: 48px;
    height: 48px;

    border-radius: 10px;

    background: #111827;

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}

.customer-info h2 {
    font-size: 15px;
}

.customer-info p {
    color: #929aaa;

    font-size: 9px;

    margin-top: 4px;
}


/* =========================================================
   TABS
========================================================= */

.tabs {
    display: flex;

    gap: 5px;

    border-bottom: 1px solid #e9edf3;

    margin-bottom: 20px;
}

.tab {
    padding: 12px 14px;

    text-decoration: none;

    color: #8a93a2;

    font-size: 10px;

    font-weight: 500;

    border-bottom: 2px solid transparent;
}

.tab:hover {
    color: #111827;
}

.tab.active {
    color: #111827;

    border-bottom-color: #111827;
}


/* =========================================================
   FORM
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 9px;

    color: #596272;

    font-weight: 600;
}

.form-control {
    width: 100%;

    height: 40px;

    padding: 0 12px;

    border: 1px solid #dfe4eb;

    border-radius: 7px;

    outline: none;

    font-family: inherit;

    font-size: 10px;

    color: #202633;
}

textarea.form-control {
    height: 100px;

    padding-top: 11px;

    resize: vertical;
}

.form-control:focus {
    border-color: #9ba7b8;

    box-shadow: 0 0 0 3px rgba(17,24,39,.04);
}


/* =========================================================
   FOLDER / FILE
========================================================= */

.file-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.file-card {
    border: 1px solid #e7ebf0;

    border-radius: 9px;

    padding: 18px;

    background: #fff;

    transition: .2s;
}

.file-card:hover {
    border-color: #cbd2dc;

    transform: translateY(-2px);
}

.file-icon {
    font-size: 28px;

    margin-bottom: 12px;
}

.file-card h3 {
    font-size: 10px;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.file-card p {
    font-size: 8px;

    color: #929aaa;

    margin-top: 4px;
}


/* =========================================================
   PHOTO GRID
========================================================= */

.photo-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.photo-item {
    aspect-ratio: 1 / 1;

    background: #edf0f4;

    border-radius: 9px;

    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .file-grid,
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {

    .sidebar {
        width: 70px;
    }

    .sidebar-logo img {
        width: 48px;
    }

    .nav-item {
        justify-content: center;

        padding: 12px 5px;
    }

    .nav-item span,
    .nav-title,
    .sidebar-user-info {
        display: none;
    }

    .sidebar-user {
        justify-content: center;
    }

    .main-content {
        width: calc(100% - 70px);

        margin-left: 70px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .file-grid,
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .page-content {
        padding: 18px;
    }

    .topbar {
        padding: 0 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-info {
        display: none;
    }

    .search-box {
        width: 180px;
    }

    .customer-header {
        align-items: flex-start;

        gap: 15px;

        flex-direction: column;
    }

    .file-grid,
    .photo-grid {
        grid-template-columns: 1fr 1fr;
    }
}



/* =====================================================
   DELETE MODAL
===================================================== */

.delete-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.delete-modal.show {
    visibility: visible;
    opacity: 1;
}


/* Arka plan */

.delete-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
}


/* Popup */

.delete-modal-box {
    position: relative;
    width: 420px;
    max-width: calc(100% - 30px);
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(10px) scale(0.97);
    transition: transform 0.2s ease;
}

.delete-modal.show .delete-modal-box {
    transform: translateY(0) scale(1);
}


/* İkon */

.delete-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0f0;
    color: #e33434;

    font-size: 22px;
}


/* Başlık */

.delete-modal-box h3 {
    margin: 0 0 10px;

    color: #111827;

    font-size: 18px;
    font-weight: 700;
}


/* Açıklama */

.delete-modal-box p {
    margin: 0;

    color: #7b8494;

    font-size: 13px;
    line-height: 1.6;
}


/* Butonlar */

.delete-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 25px;
}


/* Mobil */

@media (max-width: 500px) {

    .delete-modal-box {
        padding: 25px 20px;
    }

    .delete-modal-actions {
        flex-direction: column;
    }

    .delete-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

}

/* =====================================================
   YENİ SIDEBAR
===================================================== */

.sidebar {
    width: 250px;
    min-width: 250px;
    height: 100vh;
    background: #101827;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
}


/* LOGO */

.sidebar-logo {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.sidebar-logo img {
    width: 86px;
    height: 86px;
    object-fit: contain;
}


/* MENÜ */

.sidebar-nav {
    padding: 24px 14px 0;
    flex: 1;
    overflow-y: auto;
}


/* BAŞLIKLAR */

.nav-title {
    padding: 0 13px;
    margin-bottom: 12px;
    color: #7f8da7;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.system-title {
    margin-top: 28px;
}


/* MENÜ ELEMANLARI */

.sidebar .nav-item {
    height: 40px;
    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 0 13px;
    margin-bottom: 5px;

    border-radius: 8px;

    color: #9eacc4;
    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


/* İKON */

.sidebar .nav-item i {
    width: 17px;
    min-width: 17px;

    text-align: center;

    font-size: 14px;

    color: #91a6c5;
}


/* HOVER */

.sidebar .nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

.sidebar .nav-item:hover i {
    color: #ffffff;
}


/* AKTİF SAYFA */

.sidebar .nav-item.active {
    background: #ffffff;
    color: #101827;
}

.sidebar .nav-item.active i {
    color: #101827;
}


/* ALT KISIM */

.sidebar-bottom {
    padding: 18px 14px 20px;

    border-top: 1px solid rgba(255,255,255,0.07);

    flex-shrink: 0;
}


/* ADMIN */

.sidebar-user {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 10px;
    margin-bottom: 12px;
}


.sidebar-user-avatar {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #f1f4f8;
    color: #172033;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 500;
}


.sidebar-user-info {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}


.sidebar-user-info strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}


.sidebar-user-info span {
    margin-top: 3px;

    color: #8492a9;
    font-size: 10px;
}


/* ÇIKIŞ */

.sidebar .logout-item {
    margin-bottom: 0;
}

.sidebar .logout-item i {
    color: #8fa2bd;
}


/* SCROLLBAR */

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
}