@import url("nav.css");
@import url("footer.css");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

.Dashboard {
    display: flex;
    margin: 0 auto;
    max-width: 1920px;
    width: 100%;
    flex-direction: column;
}

.dashboard-banner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    background-color: #306992;
    background-image: linear-gradient(30deg, #3284bc 12%, transparent 12.5%, transparent 87%, #3284bc 87.5%, #3284bc), linear-gradient(150deg, #3284bc 12%, transparent 12.5%, transparent 87%, #3284bc 87.5%, #3284bc), linear-gradient(30deg, #3284bc 12%, transparent 12.5%, transparent 87%, #3284bc 87.5%, #3284bc), linear-gradient(150deg, #3284bc 12%, transparent 12.5%, transparent 87%, #3284bc 87.5%, #3284bc), linear-gradient(60deg, #3284bc77 25%, transparent 25.5%, transparent 75%, #3284bc77 75%, #3284bc77), linear-gradient(60deg, #3284bc77 25%, transparent 25.5%, transparent 75%, #3284bc77 75%, #3284bc77);
    background-size: 24px 42px;
    background-position: 0 0, 0 0, 12px 21px, 12px 21px, 0 0, 12px 21px;
}

.User {
    display: grid;
    grid-template-columns: 210px 1fr 1fr;
    width: 100%;
}

.profile-picture {
    display: flex;
    justify-content: flex-start;
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    margin: 30px;
    display: block;
}

.userInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
}

.userInfo h1 {
    font-size: 42px;
    letter-spacing: 1px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.userInfo h3 {
    font-size: 20px;
    color: #1A0DAB;
    margin-bottom: 15px;
}

.userInfo p {
    font-size: 20px;
    margin-bottom: 10px;
}

.Logout-content {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-end;
    align-items: stretch;
    margin: 10px 10px auto 0;
}

.Logout {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 255, 255);
    height: auto;
    width: fit-content;
    border-radius: 100px;
    padding: 3px;
    align-items: stretch;
}

.Logout:hover {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.logout img {
    width: auto;
    height: 26px;
}

.logout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 100%;
    color: #3498db;
    border: #3498db solid 5px;
    border-radius: 100px;
    padding: 5px 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    text-shadow: #3498db 0px 0px 2px;
}

.ilan-menu {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1920px;
    padding: 10px;
    background-color: #ffffff90;
}

.ilan-menu h2 {
    color: #306992;
    font-size: 30px;
    padding: 10px 20px;
    border-radius: 100px;
    align-items: center;
}

.ilan-menu ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.ilan-menu a {
    display: flex;
    padding: 10px 15px;
    justify-content: space-between;
    font-size: 20px;
    color: #3498db;
    background-color: #ffffffdd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
}

.ilan-menu a:hover {
    background-color: #3498db;
    color: #fff;
    text-shadow: #ffffff 0px 0px 2px;
}

/* Sign in Section */
/* ---------- ---------- ---------- ---------- ---------- */

.Content {
    background-color: whitesmoke;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.content {
    max-width: 1920px;
    font-family: Montserrat, sans-serif;
}

.container {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

.container p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
}

.container span {
    font-size: 12px;
}

.container a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

.container button {
    background-color: #306992;
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
}

.container button.hidden {
    background-color: transparent;
    border-color: #fff;
}

.container form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

.container input {
    background-color: #eee;
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.form-container.sign-up form {
    line-height: 40px;
}

.form-container.sign-up form h1 {
    margin-bottom: 70px;
}

.form-container.sign-up form p {
    text-align: center;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.active .sign-in {
    transform: translateX(100%);
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

.showhidebtn {
    display: flex;
    float: left;
    align-self: flex-start;
    white-space: nowrap;
    gap: 5px;
    margin-left: 10px;
    align-items: center;
}


.showhidebtn input[type="checkbox"] {
    display: flex;
    float: left;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

@keyframes move {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 150px 0 0 100px;
    z-index: 999;
}

.container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 0 150px 100px 0;
}

.toggle {
    background-color: #306992;
    height: 100%;
    background: linear-gradient(to right, #4f8cb8, #306992);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container.active .toggle {
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left {
    transform: translateX(-200%);
}

.container.active .toggle-left {
    transform: translateX(0);
}

.toggle-right {
    right: 0;
    transform: translateX(0);
}

.container.active .toggle-right {
    transform: translateX(200%);
}

@media (min-width: 820px) {
    .Content-mobile {
        display: none;
    }
}

@media (max-width: 820px) {
    .Content {
        display: none !important;
    }

    .Content-mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 30px 15px;
        min-height: calc(100vh - 145px);
        background-color: whitesmoke;
    }

    .content-mobile {
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        /* Üst kutu ile alt kutu arasındaki boşluk */
    }

    /* --- ÜST KUTU: Switch Bar --- */
    .switch-box {
        max-width: calc(100% - 50px);
        margin: 0 25px;
        position: relative;
        display: flex;
        background-color: #ffffff;
        border: 2px solid #3284bc;
        border-radius: 30px;
        padding: 3px;
        box-shadow: 0 0 7px rgb(55, 132, 188);
        box-shadow: 0 0 7px rgb(55, 132, 188), inset 0 0 20px rgb(0, 0, 0, 0.45);
    }

    .switch-bg {
        position: absolute;
        top: 6px;
        left: 6px;
        width: calc(50% - 6px);
        height: calc(100% - 12px);
        background-color: rgba(55, 132, 188, 0.9);
        border-radius: 25px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .switch-btn {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        padding: 12px 0;
        font-size: 20px;
        font-weight: 800;
        color: #666;
        cursor: pointer;
        z-index: 1;
        transition: color 0.3s ease;
        font-family: Montserrat, sans-serif;
    }

    .switch-btn.active {
        color: #ffffff;
    }



    /* --- ALT KUTU: Form Kutusu --- */
    .form-box {
        display: flex;
        background: #ffffff;
        justify-content: center;
        align-items: center;
        padding: 25px 20px;
        border: 2px solid #3284bc;
        border-radius: 30px;
        box-shadow: 0 0 7px rgb(55, 132, 188);
        position: relative;
        width: 100%;
    }

    .mobile-form-container {
        display: none;
        opacity: 0;
        width: 100%;
        height: 100%;
    }

    .mobile-form-container.active {
        display: block;
        opacity: 1;
        animation: mobileFormFadeIn 0.3s ease-in-out forwards;
    }

    @keyframes mobileFormFadeIn {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Form Eleman Tasarımları */
    .mobile-form-container form {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        justify-content: center;
    }

    .mobile-form-container h1 {
        font-size: 30px;
        color: #306992;
        margin-bottom: 15px;
    }

    .mobile-form-container h2 {
        font-size: 18px;
        color: #e74c3c;
        margin-top: 80px;
        margin-bottom: 10px;
    }

    .mobile-form-container p {
        font-size: 14px;
        color: #666;
        text-align: center;
        margin: 10px 0 75px;
    }

    .mobile-form-container input[type="text"],
    .mobile-form-container input[type="password"] {
        background-color: #eee;
        border: 1px solid transparent;
        margin: 8px 0;
        padding: 12px 15px;
        font-size: 15px;
        border: 1px solid #3284bc;
        border-radius: 8px;
        width: 100%;
        outline: none;
        transition: border-color 0.2s;
        box-sizing: border-box;
    }

    .mobile-form-container input:focus {
        border-color: #3284bc;
    }

    .mobile-form-container button[type="submit"] {
        background-color: #306992;
        color: #fff;
        font-size: 14px;
        padding: 12px 0;
        width: 100%;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-top: 15px;
        cursor: pointer;
        transition: background-color 0.2s;
        box-sizing: border-box;
    }

    .mobile-form-container .forgot-password {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }

    .mobile-form-container button[type="submit"]:hover {
        background-color: #3284bc;
    }

    .mobile-form-container .showhidebtn {
        width: 100%;
        margin-top: 5px;
    }

    .mobile-form-container a {
        color: #333;
        font-size: 13px;
        text-decoration: none;
        margin-top: 10px;
        align-self: flex-start;
    }
}

@media (max-width: 990px) {
    .ilan-menu h2 {
        font-size: 25px;
    }

    .ilan-menu ul {
        gap: 10px;
    }

    .ilan-menu a {
        padding: 5px 7px;
        font-size: 18px;
    }

}

/* ==========================================
   DASHBOARD MOBİL UYUMLULUK (Max-Width: 820px)
   ========================================== */
@media (max-width: 820px) {
    .Dashboard {
        width: 100%;
        overflow-x: hidden;
    }

    /* Kullanıcı Bilgileri Alanı */
    .User {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
        position: relative;
    }

    .profile-picture {
        margin: 10px auto 15px auto;
        width: 100px;
        height: 100px;
    }

    .userInfo {
        align-items: center;
        width: 100%;
    }

    .userInfo h1 {
        font-size: 26px;
    }

    .userInfo h3 {
        color: #1A0DAB;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .userInfo p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    /* Çıkış Yap Butonu */
    .Logout-content {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: fit-content;
        justify-content: center;
        align-items: stretch;
    }

    .Logout {
        margin: 10px 0 0 0;
        width: auto;
        justify-content: center;
        height: auto;
    }

    .logout {
        font-size: 16px;
        border-width: 3px;
        padding: 4px 15px;
        width: 100%;
        flex-wrap: nowrap;
        height: 100%;
    }

    .logout img {
        height: 18px;
    }

    /* İlan Menüsü Alanı */
    .ilan-menu {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 15px 10px;
        border-radius: 0;
    }

    .ilan-menu h2 {
        font-size: 20px;
        padding: 0;
        text-align: center;
    }

    .ilan-menu ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 eşit sütun düzeni */
        width: 100%;
        gap: 10px;
        padding: 0;
    }

    .ilan-menu a {
        width: 100%;
        /* Sütun genişliğini tam doldurması için */
        justify-content: center;
        font-size: 15px;
        padding: 10px;
        text-align: center;
    }
}

/* Dashboard İçerik ve Paneller */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
    max-width: 1920px;
    width: 100%;
    box-sizing: border-box;
}

/* 3'lü İlan İstatistik Kartları */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 6px solid #306992;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.active-card {
    border-left-color: #2ecc71;
}

.passive-card {
    border-left-color: darkorange;
}

.total-card {
    border-left-color: #3498db;
}

.stat-icon {
    font-size: 36px;
}

.active-card .stat-icon {
    color: #2ecc71;
}

.passive-card .stat-icon {
    color: darkorange;
}

.total-card .stat-icon {
    color: #3498db;
}

.stat-info h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 15px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Form İstekleri Kutusu */
.requests-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.requests-box h2 {
    font-size: 20px;
    color: #306992;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.request-item:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.request-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.req-badge {
    background-color: #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.req-title {
    font-size: 16px;
    color: #1e293b;
}

.request-sub {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
}

.req-date {
    font-size: 13px;
    color: #94a3b8;
}

.no-data {
    color: #94a3b8;
    font-style: italic;
}

@media (max-width: 768px) {
    .stats-panel {
        grid-template-columns: 1fr;
    }

    .request-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .request-sub {
        width: 100%;
        justify-content: space-between;
    }
}