/* ============================================
   MY ACCOUNT PAGE STYLES (MIGRATED)
   ============================================ */

/* Account Section */
.account-section {
    padding: 70px 0;
    background: #f8f9fa;
}

/* Account Sidebar */
.account-sidebar {
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 30px;
}

.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {

    float: none !important;
    width: auto !important;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #004869 0%, #0da4af 100%);
    color: #fff;
}

.account-user .user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-user .user-avatar i {
    font-size: 24px;
}

.account-user .user-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.account-user .user-info span {
    font-size: 13px;
    opacity: 0.8;
}

.account-nav {
    padding: 15px 0;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.account-nav a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #888;
    transition: color 0.3s ease;
}

.account-nav a:hover,
.account-nav a.active {
    background: rgba(13, 164, 175, 0.1);
    color: #004869;
    border-left-color: #0da4af;
}

.account-nav a:hover i,
.account-nav a.active i {
    color: #0da4af;
}

.account-nav a.logout {
    color: #ff4757;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.account-nav a.logout i {
    color: #ff4757;
}

.account-nav a.logout:hover {
    background: rgba(255, 71, 87, 0.1);
    border-left-color: #ff4757;
}

/* Account Content */
.account-content {
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    padding: 35px;
    min-height: 500px;
}

/* Welcome Message */
.welcome-message {
    background: linear-gradient(135deg, rgba(0, 72, 105, 0.05) 0%, rgba(13, 164, 175, 0.05) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.welcome-message h2 {
    border: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 15px !important;
    font-size: 28px !important;
}

.welcome-message p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #0da4af;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #004869 0%, #0da4af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-icon i {
    font-size: 24px;
    color: #fff;
}

.stat-card .stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #004869;
    margin-bottom: 5px;
    font-family: "Montserrat", sans-serif;
}

.stat-card .stat-info span {
    font-size: 14px;
    color: #888;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #004869;
    margin: 0;
}

.section-header .view-all {
    font-size: 14px;
    color: #0da4af;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.section-header .view-all:hover {
    color: #004869;
}

/* Orders Table */
.orders-table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.orders-table th {
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table td {
    font-size: 15px;
    color: #333;
}

.orders-table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.processing {
    background: rgba(255, 193, 7, 0.15);
    color: #d49400;
}

.status-badge.shipped {
    background: #929292;
    color: #0062cc;
}

.status-badge.completed {
    background: rgba(40, 167, 69, 0.15);
    color: #1e7e34;
}

.status-badge.cancelled {
    background: rgba(220, 53, 69, 0.15);
    color: #bd2130;
}

.btn-view {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #004869 0%, #0da4af 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 72, 105, 0.3);
    color: #fff;
}

/* Account Responsive */
@media (max-width: 991.98px) {
    .account-section {
        padding: 50px 0;
    }

    .account-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .account-section {
        padding: 30px 0;
    }

    .account-content {
        padding: 25px 20px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card .stat-info h3 {
        font-size: 26px;
    }

    .orders-table th,
    .orders-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .welcome-message {
        padding: 20px;
    }

    .welcome-message h2 {
        font-size: 22px;
    }
}

/* Ultimate Member Specific Overrides */
.um-account-main {
    width: 100% !important;
    float: none !important;
}

.um-account-nav {
    display: none !important;
    /* Hide default UM nav as we have our own */
}

.um-account-side {
    display: block !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    border: none !important;
}

.um-account-tab {
    padding: 0 !important;
}

.um-account-heading {
    display: none !important;
    /* Hide redundant UM header */
}

.um-btn,
input[type=submit].um-button,
a.um-button {
    background: linear-gradient(135deg, #004869 0%, #0da4af 100%) !important;
    border-radius: 12px !important;
    padding: 14px 30px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

.um-btn:hover,
input[type=submit].um-button:hover,
a.um-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 72, 105, 0.3) !important;
    opacity: 1 !important;
}

.um-form input[type=text],
.um-form input[type=password],
.um-form textarea {
    border: 2px solid #f0f0f0 !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
}

.um-form input[type=text]:focus,
.um-form input[type=password]:focus {
    border-color: #0da4af !important;
}