/*
    Template Name: Ninova Sınav
    Description: Ninova Sınav
    Author: Sadık Sefa Kütük
    Version: 1.0

    -----------------------------------------------------------------------------------
*/
.profile-page {
    padding: 40px 0;
}

.my-account-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Sol Sidebar */
.wrap-sidebar-account {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-account {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-account:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.account-avatar {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.account-avatar .image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
}

.account-avatar .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar h6 {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.account-avatar .body-text-1 {
    color: #777;
    font-size: 14px;
}

/* Avatar Düzenleme Özellikleri */
.avatar-container {
    position: relative;
    cursor: pointer;
}

.avatar-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.avatar-edit-overlay i {
    font-size: 24px;
    margin-bottom: 5px;
}

.avatar-edit-overlay span {
    font-size: 12px;
    text-align: center;
    padding: 0 10px;
}

.avatar-container:hover .avatar-edit-overlay {
    opacity: 1;
}

.avatar-edit-button {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: 2px solid #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.avatar-edit-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* Avatar Modal Stilleri */
.avatar-drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.avatar-drop-zone.dragover {
    border-color: #3f78e0;
    background-color: rgba(63, 120, 224, 0.05);
}

.avatar-preview-container {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto;
    border: 3px solid #eee;
}

.avatar-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigasyon Stilleri */
.my-account-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.my-account-nav li {
    margin-bottom: 15px;
}

.my-account-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.my-account-nav-item svg {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.my-account-nav-item.active {
    background-color: #f0f0f0;
    font-weight: 600;
}

.my-account-nav-item:hover {
    background-color: #f0f0f0;
    transform: translateX(3px);
}

/* Sağ İçerik Alanı */
.my-account-content {
    flex: 1;
    min-width: 0;
}

.account-details, .account-orders {
    display: none;
}

.account-details.active, .account-orders.active {
    display: block;
}

.account-form-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.account-form-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.form-account-details h5.title {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cols {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cols fieldset {
    flex: 1;
    min-width: 250px;
    margin-block: 10px;
}

.cols fieldset.full-width {
    flex: 0 0 100%;
    min-width: 100%;
}

.cols input,
.cols textarea,
.tf-select select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cols textarea {
    resize: vertical;
    min-height: 120px;
}

.cols input:focus,
.cols textarea:focus,
.tf-select select:focus {
    border-color: #3f78e0;
    box-shadow: 0 0 0 3px rgba(63, 120, 224, 0.1);
}

.tf-select {
    margin-bottom: 20px;
}

.tf-select select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.account-password {
    margin-top: 20px;
}

.password-item {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #333;
}

.button-submit {
    margin-top: 30px;
}

.button-submit button {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.button-submit button:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.button-submit button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Siparişler Tablosu */
.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    color: #333;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.table td {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.empty-orders {
    padding: 15px 0;
}

.empty-box {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    color: #bbb;
    border-radius: 50%;
}

/* Mobil Stil */
.btn-sidebar-account {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 100;
}

.btn-sidebar-account button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #222;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-sidebar-account button:hover {
    background-color: #333;
    transform: scale(1.05);
}

.offcanvas-account {
    width: 300px;
}

.offcanvas-account .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
}

.offcanvas-account .offcanvas-header {
    border-bottom: 1px solid #eee;
}

.offcanvas-account .offcanvas-body {
    padding: 0;
}

/* Medya Sorguları */
@media (max-width: 991px) {
    .wrap-sidebar-account {
        display: none;
    }

    .btn-sidebar-account {
        display: block;
    }

    .my-account-content {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .cols {
        flex-direction: column;
    }

    .cols fieldset {
        min-width: 100%;
    }

    .profile-page {
        padding: 20px 0;
        position: relative;
        min-height: 50vh;
    }

    .account-form-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .account-form-card {
        padding: 15px;
    }

    .button-submit button {
        width: 100%;
        justify-content: center;
    }

    .modal-dialog {
        margin: 10px;
    }
}

/* Şifre Alanı Yeni Stilleri */
.input-label {
    margin-bottom: 8px;
}

.input-label label {
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 14px 45px 14px 15px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.password-input-container input:focus {
    border-color: #3f78e0;
    box-shadow: 0 0 0 3px rgba(63, 120, 224, 0.1);
}

.password-input-container .toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #777;
    transition: all 0.3s ease;
    background: none;
    border: none;
    z-index: 2;
}

.password-input-container .toggle-password:hover {
    color: #333;
}

.password-strength-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.requirement-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.requirement-item.valid {
    color: #28a745;
}

.password-strength-meter {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.strength-bar {
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.meter {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.meter.weak {
    width: 25%;
    background-color: #dc3545;
}

.meter.medium {
    width: 50%;
    background-color: #ffc107;
}

.meter.strong {
    width: 75%;
    background-color: #17a2b8;
}

.meter.very-strong {
    width: 100%;
    background-color: #28a745;
}

.strength-text {
    font-size: 12px;
    color: #777;
    text-align: right;
}

.password-match {
    margin-top: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
    height: 16px;
}

.password-match.match {
    color: #28a745;
}

.password-match.not-match {
    color: #dc3545;
}
