/* LUXURY THEME PROFILE */

/* Profile Layout */
.profile-layout-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Sections */
.content-col {
    min-width: 0;
}

.section-card-title {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
}

.section-card-title h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-card-title h2 i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Profile Form Elements */
.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-grid-col {
    display: flex;
    flex-direction: column;
}

.edit-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.edit-card h4 {
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.edit-card h4 i {
    color: var(--accent);
}

.edit-card .form-group {
    margin-bottom: 18px;
}

.edit-card .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.edit-card .input-wrapper {
    position: relative;
}

.edit-card .input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.edit-card .input-wrapper input {
    width: 100%;
    padding: 13px 15px 13px 42px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--primary);
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: var(--font-body);
}

.edit-card .input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

.edit-card .input-wrapper input:focus+i,
.edit-card .input-wrapper:focus-within i {
    color: var(--accent);
}

.edit-card .hint {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 6px;
    font-style: italic;
}

.edit-card .alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.edit-card .alert-light {
    background: #fdf6e3;
    border: 1px dashed var(--accent);
}

.edit-card .alert .d-flex {
    display: flex;
}

.edit-card .alert .align-items-center {
    align-items: center;
}

.edit-card .alert .text-warning {
    color: var(--accent);
    margin-right: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.edit-card .alert .text-muted {
    color: #888;
}

.edit-card .alert .small {
    font-size: 0.85rem;
}

.edit-card .alert .font-size-h4 {
    font-size: 1.1rem;
}

.edit-card-actions {
    margin-top: auto;
    padding-top: 12px;
}

/* Success Alert */
.alert-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f0faf0;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    margin-bottom: 25px;
    color: #2e7d32;
    font-size: 0.9rem;
}

.alert-success i {
    flex-shrink: 0;
    font-size: 1.2rem;
}

.alert-success button {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.alert-success button:hover {
    color: #333;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #fff 0%, #fcfcfc 100%);
    border: 1px dashed #e0e0e0;
    border-radius: 16px;
    color: #777;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.empty-state:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
    background: #fff8e1;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.2);
    animation: floatIcon 3s ease-in-out infinite;
}

.empty-state h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.empty-state p {
    font-size: 0.95rem;
    color: #888;
    max-width: 400px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
}

/* Page Title (History) */
.page-title {
    font-family: var(--font-heading);
    margin: 0;
}

/* Order Filters */
.order-filters-wrapper {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-scroll-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 10;
    flex-shrink: 0;
}

.filter-scroll-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.filter-scroll-btn.left {
    margin-left: -5px;
}

.filter-scroll-btn.right {
    margin-right: -5px;
}

.order-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    cursor: grab;
}

.order-filters::-webkit-scrollbar {
    display: none;
}

.order-filters a {
    padding: 8px 18px;
    border-radius: 30px;
    background: #f8f9fa;
    border: 1px solid #eee;
    color: #444;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.order-filters a:hover,
.order-filters a.active {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Order List & Cards */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-header {
    background: #f9f9f9;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.order-header .order-id strong {
    color: var(--primary);
    font-size: 1rem;
}

.order-header .order-date {
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-body {
    padding: 20px 25px;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr 1fr;
    align-items: center;
    gap: 20px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.preview-stack {
    display: flex;
    align-items: center;
    gap: 5px;
}

.preview-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

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

.preview-more {
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    color: #777;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 5px;
}

.info-group .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
}

.info-group .value {
    font-weight: 500;
    color: #333;
}

.info-group .value.price {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Sidebar Nav */
.profile-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 18px 8px;
}

.user-card {
    padding: 0 4px;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 10px 4px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.profile-nav .nav-item i {
    width: 25px;
    color: #999;
    transition: 0.2s;
}

.profile-nav .nav-item .arrow {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0;
    transition: 0.2s;
}

.profile-nav .nav-item:hover {
    background: #f9f9f9;
    color: #333;
}

.profile-nav .nav-item.active {
    background: var(--bg-light);
    color: var(--accent);
    font-weight: 500;
}

.profile-nav .nav-item.active i {
    color: var(--accent);
}

.profile-nav .nav-item:hover .arrow,
.profile-nav .nav-item.active .arrow {
    opacity: 1;
}

.profile-nav .nav-item.text-danger {
    color: #dc3545;
}

/* Responsive Profile */
@media (max-width: 991px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-sidebar {
        width: 100%;
        margin-bottom: 20px;
        box-sizing: border-box;
    }

    .user-card h4 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .user-card p {
        font-size: 0.8rem;
        margin: 0;
    }

    .stats-overview {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .form-grid-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .edit-card {
        padding: 20px;
    }

    /* Stats Stack */
    .stat-box {
        padding: 15px;
        gap: 15px;
    }

    .stat-box .icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .stat-box .info h3 {
        font-size: 1.3rem;
        margin: 0;
    }

    /* Order Cards */
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-body {
        display: grid;
        /* override flex if any */
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    /* Stack order details */
    .previews-group {
        grid-column: 1;
        order: -1;
    }

    .action-group {
        grid-column: 1;
        margin-top: 10px;
        text-align: center;
    }

    .action-group a {
        width: auto;
        display: inline-flex;
        justify-content: center;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .orders-list .order-card {
        margin: 0 0 15px 0;
    }

    .orders-list .info-group {
        padding-bottom: 8px;
        border-bottom: 1px dashed #f5f5f5;
    }

    .orders-list .info-group:last-child {
        border-bottom: none;
    }
}