/* Account Management Styles */

/* My Order Section */


.my_order .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.my_order .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
}

.my_order .page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Account Info Sidebar */
.account_info {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
}

.account_info_title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.account_sidemenu ul {
    list-style: none;
    margin: 0;
}

.account_sidemenu ul li {
    margin-bottom: 10px;
}

.account_sidemenu ul li a {
    display: block;
    padding: 12px 15px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.account_sidemenu ul li a:hover {
    background: #e9ecef;
    color: #333;
}

.account_sidemenu ul li a.active {
    background: #ed1c24;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(237,28,36,0.15);
}

/* Account Form */
.account_form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.account_form .form-control {
    border: none;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: transparent;
    padding-left: 0;
    font-size: 16px;
}

.account_form .form-control:focus {
    border-bottom-color: #333 !important;
    box-shadow: none;
    background: transparent;
}

.account_form .form-control:disabled {
    background: transparent;
    opacity: 0.6;
}

.account_form .form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 16px;
}

.account_form .form-select:focus {
    border-color: #333;
    box-shadow: 0 0 0 0.2rem rgba(51, 51, 51, 0.25);
}

.account_form button[type="submit"] {
    background: #333;
    border: none;
    padding: 12px 30px;
    color: white;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.account_form button[type="submit"]:hover {
    background: #000;
}

.account_form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Birth and Team Section */
.birth_team {
    margin: 20px 0;
}

.birth_input .form-select {
    font-size: 14px;
}

.account_job .form-select {
    font-size: 16px;
}

/* Order Timeline */
.order-timeline {
    position: relative;
    padding-left: 30px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -22px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    border: 3px solid white;
    box-shadow: 0 0 0 1px #dee2e6;
}

.timeline-item.completed .timeline-icon {
    background: #198754;
}

.timeline-item.active .timeline-icon {
    background: #0d6efd;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.timeline-content h6 {
    margin-bottom: 2px;
    font-size: 14px;
}

.timeline-content small {
    font-size: 12px;
}

/* Timeline Small Version */
.timeline-sm .timeline-item {
    position: relative;
    padding-left: 25px;
    padding-bottom: 15px;
    border-left: 2px solid #198754;
}

.timeline-sm .timeline-item:last-child {
    border-left: none;
    padding-bottom: 0;
}

.timeline-sm .timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #198754;
}

.timeline-sm .timeline-item.completed::before {
    background: #198754;
}

/* Address Styles */
.my_addres_left {
    width: 100%;
}

.registered_address {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.registered_adress_title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.registered_adress_detail {
    border: 1px solid #e9ecef;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    max-height: 160px; /* Sabit yükseklik, ihtiyaca göre ayarlanabilir */
    overflow: hidden;   /* Taşan içeriği gizle */
    display: flex;
    flex-direction: row;
}

.detail_left {
    flex: 1 1 auto;
    min-width: 0;
}

.detail_left span,
.detail_left p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.detail_right {
    align-items: flex-start;
    flex-shrink: 0;
}

.registered_adress_detail:hover {
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail_left span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.detail_left p {
    margin: 4px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.detail_edit_button a,
.detail_trash_button a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.detail_edit_button a {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.detail_edit_button a:hover {
    background: #333;
    color: #fff;
}

.detail_trash_button a {
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.detail_trash_button a:hover {
    background: #dc3545;
    color: #fff;
}

.add_new_adress {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.add_new_adress a {
    display: inline-block;
    background: #333;
    color: #fff !important;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.add_new_adress a:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Orders Styles */
.my_orders_left {
    width: 100%;
}

.old_orders {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.re_order a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.re_order a:hover {
    background: #333;
    color: #fff;
}

.order_bottom_side {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f8f9fa;
}

.price_side .new_price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Active Orders */
.active_orders {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.inner_title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.order_inner {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.order_inner:hover {
    border-color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.order_time {
    margin-bottom: 8px;
}

.order_time span {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
}

.order_title {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

.order_title:hover {
    color: #000;
    text-decoration: underline;
}

.order_title b {
    font-weight: 600;
}

.order_history {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order_history_title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order_item {
    border: 1px solid #e9ecef;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.order_item:hover {
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order_header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8f9fa;
}

.order_number {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.order_date {
    color: #666;
    font-size: 14px;
}

.order_status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.order_status.delivered {
    background: #d4edda;
    color: #155724;
}

.order_status.pending {
    background: #fff3cd;
    color: #856404;
}

.order_status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order_content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin: 15px 0;
}

.order_items {
    flex: 1;
}

.order_item_detail {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.order_total {
    font-size: 18px;
    color: #333;
    margin-left: 20px;
}

.order_actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f8f9fa;
}

.order_actions .btn {
    font-size: 13px;
    padding: 6px 12px;
}

/* Pizza Tracking Styles */
.order_follow_code {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.order_follow_code .inner_title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.order_follow_code .inner_title i {
    margin-right: 10px;
    color: #333;
}

.order_follow_button button {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order_follow_button button:hover {
    background: #000;
}

.order_tracking_result {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.tracking_status {
    margin-top: 20px;
}

.status_info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px;
}

.status_info h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.status_info p {
    margin: 5px 0;
    color: #666;
}

.tracking_form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.tracking_input {
    display: flex;
    gap: 10px;
    align-items: end;
}

.tracking_input .form-control {
    flex: 1;
}

.tracking_button {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}

.tracking_button:hover {
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .account_form {
        padding: 20px;
    }

    .account_info {
        margin-top: 30px;
    }

    .registered_adress_detail {
        flex-direction: column;
        max-height: 220px; /* Mobilde biraz daha fazla yükseklik */
    }
    .detail_right {
        flex-direction: row;
        margin-top: 15px;
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .detail_edit_button a,
    .detail_trash_button a {
        flex: 1;
        justify-content: center;
    }
}

/* Order Status Badge Styles */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    color: #fff;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
}

.order-status-badge.onay-bekliyor {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.order-status-badge.hazirlaniyor {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.order-status-badge.yolda {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.order-status-badge.teslim-edildi {
    background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%);
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.3);
}

.order-status-badge.iptal-edildi {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.order-status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Order review section */
.order_review_wrapper {
    background: #fff;
}

.order-review-accordion {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.order-review-accordion .review-accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.order-review-accordion .review-accordion-button {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #fff;
    padding: 14px 16px;
}

.order-review-accordion .review-accordion-button:not(.collapsed) {
    color: #333;
    background: #fff;
    box-shadow: none;
}

.order-review-accordion .review-accordion-button:focus {
    box-shadow: none;
}

.order-review-accordion .review-accordion-body {
    padding: 18px 16px 16px;
}

.order_review_wrapper .review-form-group {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order_review_wrapper .review-form-group:last-of-type {
    border-bottom: none;
}

.order_review_wrapper .review-form-title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.order_review_wrapper .star-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.order_review_wrapper .star-rating i {
    font-size: 22px;
    color: #c7c7c7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order_review_wrapper .star-rating i.hovered,
.order_review_wrapper .star-rating i.selected,
.order_review_wrapper .star-rating i.fas {
    color: #f5b301;
}

.order_review_wrapper .star-rating i.hovered {
    transform: scale(1.08);
}

.order_review_wrapper .review-comment {
    width: 100%;
    min-height: 76px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    resize: vertical;
    font-family: inherit;
    color: #333;
}

.order_review_wrapper .review-comment:focus {
    outline: none;
    border-color: #ed1c24;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12);
}

.order_review_wrapper .product-review-name {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
}

.order_review_wrapper .review-submit-wrapper {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.order_review_wrapper .review-submit-btn {
    width: 100%;
    border: none;
    background: #ed1c24;
    color: #fff;
    border-radius: 6px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.order_review_wrapper .review-submit-btn:hover {
    background: #d1171e;
}

.order_review_wrapper .review-submit-btn:disabled {
    background: #b1b1b1;
    cursor: not-allowed;
}

.order_review_wrapper .existing-reviews {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.order_review_wrapper .existing-review-item {
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
}

.order_review_wrapper .existing-review-item:last-child {
    margin-bottom: 0;
}

.order_review_wrapper .existing-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.order_review_wrapper .existing-review-type {
    font-size: 12px;
    font-weight: 600;
    color: #3c3c3c;
}

.order_review_wrapper .existing-review-stars {
    font-size: 14px;
    color: #f5b301;
    white-space: nowrap;
}

.order_review_wrapper .existing-review-comment {
    font-size: 13px;
    line-height: 1.45;
    color: #4f4f4f;
}

.order_review_wrapper .review-success-msg,
.order_review_wrapper .review-error-msg {
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
}

.order_review_wrapper .review-success-msg {
    background: #d4edda;
    border: 1px solid #b7dfbe;
    color: #1f6a30;
}

.order_review_wrapper .review-error-msg {
    background: #f8d7da;
    border: 1px solid #efc2c8;
    color: #8f1d2d;
}

@media (max-width: 768px) {
    .order-review-accordion {
        padding: 0;
    }

    .order_review_wrapper .star-rating i {
        font-size: 20px;
    }

    .order-review-accordion .review-accordion-body {
        padding: 14px 12px 12px;
    }

    .order_review_wrapper .existing-review-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
