/* ====================================
   MY ACCOUNT PAGE STYLES
   MS InstruVibe - Complete Redesign
   ==================================== */

/* ========== MAIN WRAPPER ========== */
.custom-my-account-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========== ACCOUNT HEADER ========== */
.account-header {
    background: linear-gradient(135deg, #0066CC 0%, #1A1F2E 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.account-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.account-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* ========== LAYOUT ========== */
.account-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* ========== SIDEBAR ========== */
.account-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

/* User Info Card */
.user-info-card {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
}

.user-avatar {
    margin-bottom: 15px;
}

.user-avatar img {
    border-radius: 50%;
    border: 4px solid #0066CC;
    width: 80px;
    height: 80px;
}

.user-info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 5px;
}

.user-info-card p {
    font-size: 0.9rem;
    color: #7F8C8D;
    margin: 0;
}

/* Account Menu */
.account-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu li {
    margin-bottom: 8px;
}

.account-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #2C3E50;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.account-menu li a:hover {
    background: #f0f7ff;
    color: #0066CC;
    transform: translateX(5px);
}

.account-menu li.is-active a {
    background: linear-gradient(135deg, #0066CC 0%, #1A1F2E 100%);
    color: white;
}

.account-menu li.is-active a:hover {
    transform: none;
}

/* ========== MAIN CONTENT ========== */
.account-content {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    min-height: 500px;
}

/* ========== REGISTRATION SUCCESS BANNER ========== */
.registration-success-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.success-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.success-icon {
    font-size: 3.5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.success-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.success-text p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin: 0;
}

.success-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-success-primary,
.btn-success-secondary {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-success-primary {
    background: white;
    color: #28a745;
}

.btn-success-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-success-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-success-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========== ALREADY LOGGED IN MESSAGE ========== */
.already-logged-in-message {
    background: linear-gradient(135deg, #0066CC 0%, #1A1F2E 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.message-icon {
    font-size: 3.5rem;
    background: white;
    color: #28a745;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.message-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.message-text p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin: 0;
}

.message-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-message-primary,
.btn-message-secondary {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-message-primary {
    background: white;
    color: #0066CC;
}

.btn-message-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-message-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-message-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========== DASHBOARD STYLES ========== */
.account-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 2px solid #e6f2ff;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2C3E50;
    margin-bottom: 8px;
}

.welcome-text p {
    font-size: 1.05rem;
    color: #7F8C8D;
    margin: 0;
}

.btn-continue-shopping {
    background: #0066CC;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-continue-shopping:hover {
    background: #FF6B00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #0066CC;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2C3E50;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 0.9rem;
    color: #7F8C8D;
    margin: 0;
}

/* Dashboard Section */
.dashboard-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
}

.section-header a {
    color: #0066CC;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.section-header a:hover {
    color: #FF6B00;
}

/* Recent Orders */
.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.order-card:hover {
    border-color: #0066CC;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C3E50;
}

.order-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #f8d7da;
    color: #721c24;
}

.order-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #7F8C8D;
    font-size: 0.95rem;
}

.view-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0066CC;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.view-order-btn:hover {
    color: #FF6B00;
    transform: translateX(5px);
}

/* No Orders */
.no-orders {
    text-align: center;
    padding: 40px 20px;
}

.no-orders p {
    font-size: 1.1rem;
    color: #7F8C8D;
    margin-bottom: 20px;
}

.btn-start-shopping {
    background: #0066CC;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-start-shopping:hover {
    background: #FF6B00;
    transform: translateY(-2px);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.action-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.action-card:hover {
    border-color: #0066CC;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.action-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.action-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 8px;
}

.action-card p {
    font-size: 0.9rem;
    color: #7F8C8D;
    margin: 0;
}

/* ========== TOP BAR LOGOUT STYLE ========== */
.instruvibe-top-bar .logout-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 5px;
    transition: all 0.3s;
}

.instruvibe-top-bar .logout-link:hover {
    background: #FF6B00;
    transform: translateY(-2px);
}

/* ========== WOOCOMMERCE FORMS STYLING ========== */
.woocommerce-form,
.woocommerce-EditAccountForm {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.woocommerce-form label,
.woocommerce-EditAccountForm label {
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-form input[type="text"],
.woocommerce-form input[type="email"],
.woocommerce-form input[type="password"],
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.woocommerce-form input:focus,
.woocommerce-EditAccountForm input:focus {
    border-color: #0066CC;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.woocommerce-Button {
    background: #0066CC;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.woocommerce-Button:hover {
    background: #FF6B00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ========== ORDERS TABLE ========== */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.woocommerce-orders-table th {
    background: #f8f9fa;
    font-weight: 700;
    color: #2C3E50;
}

.woocommerce-orders-table tr:hover {
    background: #f8f9fa;
}

/* ========== ADDRESSES ========== */
.woocommerce-Address {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.woocommerce-Address-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 15px;
}

.woocommerce-Address address {
    font-style: normal;
    line-height: 1.8;
    color: #555;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .user-info-card {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px;
        text-align: left;
    }

    .user-avatar {
        margin-bottom: 0;
    }

    .account-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .account-header h1 {
        font-size: 1.8rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .welcome-banner {
        text-align: center;
    }

    .success-content,
    .message-content {
        flex-direction: column;
        text-align: center;
    }

    .account-menu {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .account-header {
        padding: 25px;
    }

    .account-content {
        padding: 20px;
    }

    .success-actions,
    .message-actions {
        flex-direction: column;
    }

    .btn-success-primary,
    .btn-success-secondary,
    .btn-message-primary,
    .btn-message-secondary {
        width: 100%;
        justify-content: center;
    }
}