/**
 * Photo Customer Dashboard Styles
 * Dark Theme with Purple Accents
 */

/* ============================================
   TYPOGRAPHY SYSTEM - Standardized Font Sizes
   ============================================ */
.pcd-dashboard-wrapper h1,
.pcd-dashboard-wrapper .pcd-dashboard-home h1,
.pcd-dashboard-wrapper .pcd-orders-page h1,
.pcd-dashboard-wrapper .pcd-profile-page h1,
.pcd-dashboard-wrapper .pcd-password-page h1,
.pcd-dashboard-wrapper .pcd-admin-dashboard-home h1,
.pcd-dashboard-wrapper .pcd-admin-customers-page h1,
.pcd-dashboard-wrapper .pcd-admin-orders-page h1,
.pcd-dashboard-wrapper .pcd-admin-profile-page h1 {
    font-size: clamp(22px, 3.5vw, 32px) !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 0 15px 0 !important;
}

.pcd-dashboard-wrapper h2,
.pcd-dashboard-wrapper .pcd-sidebar-header h2,
.pcd-dashboard-wrapper .pcd-recent-orders h2,
.pcd-dashboard-wrapper .pcd-profile-section h2,
.pcd-dashboard-wrapper .pcd-admin-profile-header h1,
.pcd-dashboard-wrapper #pcd-order-details h2 {
    font-size: clamp(18px, 2.5vw, 24px) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 0 15px 0 !important;
}

.pcd-dashboard-wrapper h3,
.pcd-dashboard-wrapper .pcd-stat-content h3 {
    font-size: clamp(20px, 2.8vw, 28px) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
}

.pcd-dashboard-wrapper h4,
.pcd-dashboard-wrapper .pcd-recent-order-info h4 {
    font-size: clamp(15px, 2vw, 18px) !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
}

/* Body text */
.pcd-dashboard-wrapper,
.pcd-dashboard-wrapper p,
.pcd-dashboard-wrapper .pcd-user-name,
.pcd-dashboard-wrapper .pcd-stat-content p {
    font-size: clamp(14px, 1.8vw, 16px) !important;
    line-height: 1.6 !important;
}

/* Small text / Labels */
.pcd-dashboard-wrapper .pcd-recent-order-date,
.pcd-dashboard-wrapper .pcd-empty-state p,
.pcd-dashboard-wrapper small {
    font-size: clamp(12px, 1.6vw, 14px) !important;
    line-height: 1.5 !important;
}

/* Extra small text */
.pcd-dashboard-wrapper .pcd-customers-table td::before,
.pcd-dashboard-wrapper .pcd-orders-table tbody td::before {
    font-size: clamp(11px, 1.4vw, 12px) !important;
    line-height: 1.4 !important;
}

/* Dashboard page styling - keep theme elements visible */
body.pcd-dashboard-page {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Override theme container width restrictions for dashboard ONLY (not auth pages) */
body.pcd-dashboard-page .site-content,
body.pcd-dashboard-page .content-area,
body.pcd-dashboard-page .entry-content,
body.pcd-dashboard-page .container,
body.pcd-dashboard-page .wrapper,
body.pcd-dashboard-page .main-content,
body.pcd-dashboard-page article,
body.pcd-dashboard-page .post-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Exclude auth pages from full-width overrides - use theme's default width */
body.pcd-dashboard-page .pcd-auth-wrapper ~ .site-content,
body.pcd-dashboard-page .pcd-auth-wrapper ~ .content-area,
body.pcd-dashboard-page .pcd-auth-wrapper ~ .entry-content,
body.pcd-dashboard-page .pcd-auth-wrapper ~ .container,
body.pcd-dashboard-page .pcd-auth-wrapper ~ .wrapper,
body.pcd-dashboard-page .pcd-auth-wrapper ~ .main-content,
body.pcd-dashboard-page:has(.pcd-auth-wrapper) .site-content,
body.pcd-dashboard-page:has(.pcd-auth-wrapper) .content-area,
body.pcd-dashboard-page:has(.pcd-auth-wrapper) .entry-content,
body.pcd-dashboard-page:has(.pcd-auth-wrapper) .container,
body.pcd-dashboard-page:has(.pcd-auth-wrapper) .wrapper,
body.pcd-dashboard-page:has(.pcd-auth-wrapper) .main-content,
body.pcd-dashboard-page:has(.pcd-auth-wrapper) article,
body.pcd-dashboard-page:has(.pcd-auth-wrapper) .post-content {
    max-width: revert !important;
    width: revert !important;
    padding-left: revert !important;
    padding-right: revert !important;
    margin-left: revert !important;
    margin-right: revert !important;
}

/* Reset and Base Styles */
.pcd-dashboard-wrapper {
    display: flex;
    min-height: 80vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    margin: 5px;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.6;
    max-width: 100% !important;
    width: calc(100% - 10px) !important;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    /* Ensure dashboard stays below main navbar */
    isolation: isolate;
}

/* Sidebar Styles */
.pcd-sidebar {
    width: 280px;
    background: #000000;
    color: #fff;
    padding: 0;
    position: relative;
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    z-index: 1;
}

.pcd-sidebar-header {
    padding: 30px 20px;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pcd-sidebar-header h2 {
    /* Font size defined in typography system above */
    color: #fff;
}

.pcd-user-name {
    margin: 0;
    font-size: clamp(13px, 1.5vw, 14px);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.pcd-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pcd-sidebar-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pcd-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(14px, 1.6vw, 15px);
    line-height: 1.5;
}

.pcd-sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.pcd-sidebar-nav a.active {
    background: #8800EE;
    color: #fff;
    font-weight: 500;
    border-left: 3px solid #8800EE;
}

.pcd-sidebar-nav a.pcd-logout {
    color: rgba(255, 255, 255, 0.7);
}

.pcd-sidebar-nav a.pcd-logout:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.pcd-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Mobile Toggle Button */
.pcd-mobile-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    z-index: 10;
    /* Ensure it stays within dashboard wrapper and doesn't overlap main navbar */
}

/* Ensure hamburger menu only appears within dashboard, not on main navbar */
body:not(.pcd-dashboard-page) .pcd-mobile-toggle,
.pcd-dashboard-wrapper:not(.pcd-dashboard-wrapper) ~ .pcd-mobile-toggle,
.site-header .pcd-mobile-toggle,
header .pcd-mobile-toggle,
nav .pcd-mobile-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.pcd-mobile-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Dashboard Content */
.pcd-dashboard-content {
    flex: 1;
    padding: 40px;
    width: 100%;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    min-width: 0; /* Allow flex item to shrink below content size */
}

/* Wider layout for admin pages - increased padding for better spacing */
.pcd-dashboard-content:has(.pcd-admin-customers-page),
.pcd-dashboard-content:has(.pcd-admin-orders-page) {
    padding: 30px 50px;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Fallback for browsers that don't support :has() */
.pcd-admin-customers-page,
.pcd-admin-orders-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.pcd-dashboard-home h1 {
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 10px 0;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
}

.pcd-dashboard-home h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8800EE;
    margin-top: 10px;
}

/* Stats Grid */
.pcd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pcd-stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.pcd-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #8800EE;
    transform: translateY(-2px);
}

.pcd-stat-icon {
    font-size: 40px;
    line-height: 1;
}

.pcd-stat-content h3 {
    /* Font size defined in typography system above */
    color: #ffffff;
}

.pcd-stat-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(13px, 1.5vw, 14px);
    line-height: 1.4;
}

/* Recent Orders */
.pcd-recent-orders {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pcd-recent-orders h2 {
    /* Font size defined in typography system above */
    color: #ffffff;
}

.pcd-recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pcd-recent-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 4px solid #8800EE;
}

.pcd-recent-order-info h4 {
    /* Font size defined in typography system above */
    color: #ffffff;
}

.pcd-recent-order-date {
    margin: 0;
    font-size: clamp(12px, 1.4vw, 13px);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.pcd-view-all {
    margin-top: 20px;
    text-align: center;
}

/* Orders Page */
.pcd-orders-page h1 {
    /* Font size defined in typography system above */
    color: #ffffff;
}

.pcd-orders-page h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8800EE;
    margin-top: 10px;
}

.pcd-empty-state {
    background: rgba(255, 255, 255, 0.05);
    padding: 60px 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pcd-empty-state p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.5;
}

.pcd-orders-table-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
}

.pcd-orders-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: auto;
}

.pcd-orders-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.pcd-orders-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(12px, 1.5vw, 14px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.pcd-orders-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(13px, 1.6vw, 14px);
    line-height: 1.5;
}

.pcd-orders-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Status Badges */
.pcd-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: clamp(11px, 1.3vw, 12px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.pcd-status-received {
    background: rgba(136, 0, 238, 0.2);
    color: #b366ff;
    border: 1px solid rgba(136, 0, 238, 0.3);
}

.pcd-status-completed {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.pcd-status-progress {
    background: rgba(136, 0, 238, 0.2);
    color: #b366ff;
    border: 1px solid rgba(136, 0, 238, 0.3);
}

.pcd-status-preview {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.pcd-status-delivered {
    background: rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.pcd-no-date {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Buttons */
.pcd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #8800EE;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: auto;
    min-height: 42px;
    line-height: 1.5;
}

.pcd-button:hover {
    background: #7700DD;
    color: #fff;
    transform: translateY(-1px);
}

.pcd-button-primary {
    background: #8800EE;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    line-height: 1.5;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
}

.pcd-button-primary:hover {
    background: #7700DD;
}

.pcd-view-order {
    background: #8800EE;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(12px, 1.5vw, 13px);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.pcd-view-order:hover {
    background: #7700DD;
}

/* Forms */
.pcd-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
}

.pcd-form-group {
    margin-bottom: 25px;
}

.pcd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: clamp(13px, 1.6vw, 14px);
    line-height: 1.5;
}

.pcd-form-group .required {
    color: #f44336;
}

.pcd-form-group input[type="text"],
.pcd-form-group input[type="email"],
.pcd-form-group input[type="tel"],
.pcd-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: clamp(14px, 1.7vw, 16px);
    color: #000000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

.pcd-form-group input:focus {
    outline: none;
    border: 1px solid #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
}

.pcd-form-group input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.pcd-help-text {
    margin: 5px 0 0 0;
    font-size: clamp(11px, 1.3vw, 12px);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.pcd-form-actions {
    margin-top: 32px;
}

.pcd-message {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 5px;
    display: none;
}

.pcd-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.pcd-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

/* Profile & Password Pages */
.pcd-profile-page h1,
.pcd-password-page h1 {
    /* Font size defined in typography system above */
    color: #ffffff;
}

.pcd-profile-page h1::after,
.pcd-password-page h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8800EE;
    margin-top: 10px;
}

/* Modal */
.pcd-modal {
    display: none;
    position: fixed;
    z-index: 999999 !important; /* Extremely high z-index to ensure modal appears above all headers including theme headers */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Center modal content vertically on large devices - use padding only when not using flexbox */
    padding: 0;
    box-sizing: border-box;
}

/* Ensure modal appears above theme headers - override any theme z-index */
body .pcd-modal,
body.pcd-dashboard-page .pcd-modal,
body .pcd-modal.active,
body.pcd-dashboard-page .pcd-modal.active,
.pcd-dashboard-wrapper .pcd-modal,
.pcd-dashboard-wrapper .pcd-modal.active,
#pcd-edit-order-modal,
#pcd-edit-order-modal.active,
#pcd-order-modal,
#pcd-order-modal.active {
    z-index: 999999 !important;
}

/* When modal is active/shown, use flexbox to center content */
.pcd-modal.active,
.pcd-modal[style*="display: block"],
.pcd-modal[style*="display:flex"] {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 180px 20px 40px 20px !important; /* Increased top padding to prevent touching header */
    overflow-y: auto;
}

.pcd-modal.active {
    padding-top: 180px !important; /* Increased top padding for active modal */
    padding-bottom: 40px !important;
}

/* Ensure perfect centering on large devices */
@media (min-width: 769px) {
    .pcd-modal.active,
    .pcd-modal[style*="display: block"],
    .pcd-modal[style*="display:flex"] {
        align-items: center;
        justify-content: center;
    }
    
    .pcd-modal.active .pcd-modal-content,
    .pcd-modal[style*="display: block"] .pcd-modal-content,
    .pcd-modal[style*="display:flex"] .pcd-modal-content,
    #pcd-edit-order-modal.active .pcd-modal-content,
    #pcd-edit-order-modal.active .pcd-modal-large,
    #pcd-edit-order-modal[style*="display: block"] .pcd-modal-content,
    #pcd-edit-order-modal[style*="display: block"] .pcd-modal-large,
    #pcd-edit-order-modal[style*="display:flex"] .pcd-modal-content,
    #pcd-edit-order-modal[style*="display:flex"] .pcd-modal-large,
    #pcd-order-modal.active .pcd-modal-content,
    #pcd-order-modal[style*="display: block"] .pcd-modal-content,
    #pcd-order-modal[style*="display:flex"] .pcd-modal-content {
        margin-top: 0 !important; /* Remove margin-top when using flexbox centering */
        margin-bottom: 0 !important; /* Remove margin-bottom when using flexbox centering */
        max-height: calc(100vh - 280px) !important; /* Reduced height to prevent touching header */
    }
    
    /* Ensure close button is visible on tablet and laptop - Positioned over scrollbar area */
    .pcd-modal-content .pcd-modal-close,
    .pcd-modal-content.pcd-modal-large .pcd-modal-close,
    #pcd-order-modal .pcd-modal-close,
    #pcd-edit-order-modal .pcd-modal-close,
    #pcd-edit-order-modal .pcd-modal-content .pcd-modal-close,
    #pcd-edit-order-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close {
        position: absolute !important;
        top: 20px !important; /* Positioned with spacing from top */
        right: 8px !important; /* Positioned over scrollbar area - scrollbar appears under the button */
        left: auto !important;
        z-index: 1000002 !important; /* Higher than scrollbar to ensure close button appears above */
        background: rgba(0, 0, 0, 0.9) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 32px !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
        padding: 0 !important;
        text-align: center !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        margin: 0 !important;
    }
    
    .pcd-modal-content .pcd-modal-close:hover,
    .pcd-modal-content.pcd-modal-large .pcd-modal-close:hover,
    #pcd-order-modal .pcd-modal-close:hover,
    #pcd-edit-order-modal .pcd-modal-close:hover,
    #pcd-edit-order-modal .pcd-modal-content .pcd-modal-close:hover,
    #pcd-edit-order-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close:hover {
        background: rgba(136, 0, 238, 0.8) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        color: #ffffff !important;
        transform: scale(1.1) !important;
    }
}

/* Hide hamburger menu when modal is open */
body.pcd-modal-open .pcd-mobile-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.pcd-modal-content {
    background-color: #000000;
    margin: 0;
    padding: 30px;
    padding-top: 50px !important;
    padding-right: 30px !important; /* Ensure padding on right for scrollbar space */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 95%;
    max-width: 900px;
    position: relative !important;
    max-height: calc(100vh - 280px) !important; /* Reduced height to prevent touching header */
    overflow-y: auto;
    overflow-x: hidden;
    color: #ffffff;
    z-index: 1000000 !important; /* Higher than modal background to ensure content is on top */
    display: flex;
    flex-direction: column;
    /* Center on large devices */
    align-self: center;
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    /* Ensure scrollbar is visible and close button can be positioned on top */
    scrollbar-width: thin;
    scrollbar-color: rgba(136, 0, 238, 0.5) transparent;
}

/* Edit Order Modal - Match View Order modal padding exactly */
/* View Order uses .pcd-modal-content with padding-right: 30px, so Edit Order should match */
#pcd-edit-order-modal .pcd-modal-content.pcd-modal-large,
#pcd-edit-order-modal.pcd-modal .pcd-modal-content.pcd-modal-large,
.pcd-modal-content.pcd-modal-large {
    padding-right: 30px !important; /* Match View Order modal - same padding as .pcd-modal-content */
}

/* Ensure modal content appears above everything in both dashboards */
body .pcd-modal-content,
body.pcd-dashboard-page .pcd-modal-content,
body .pcd-modal.active .pcd-modal-content,
body.pcd-dashboard-page .pcd-modal.active .pcd-modal-content,
.pcd-dashboard-wrapper .pcd-modal-content,
.pcd-dashboard-wrapper .pcd-modal.active .pcd-modal-content,
.pcd-orders-page .pcd-modal-content,
.pcd-orders-page .pcd-modal.active .pcd-modal-content,
#pcd-edit-order-modal .pcd-modal-content,
#pcd-edit-order-modal.pcd-modal.active .pcd-modal-content,
#pcd-order-modal .pcd-modal-content,
#pcd-order-modal.pcd-modal.active .pcd-modal-content,
.pcd-modal-large,
.pcd-modal-large.pcd-modal-content {
    z-index: 1000000 !important;
    margin-top: 0 !important; /* Remove margin-top when using flexbox centering */
    max-height: calc(100vh - 280px) !important; /* Reduced height to prevent touching header */
}

/* Modal content area - scrollable */
#pcd-order-details {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 300px); /* Adjusted to account for reduced modal height */
    padding-right: 10px;
    flex: 1;
    /* Ensure content doesn't overlap close button on mobile */
    margin-top: 0;
    padding-top: 0;
}

/* Table inside modal - prevent horizontal scroll */
#pcd-order-details .pcd-orders-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

#pcd-order-details .pcd-orders-table {
    min-width: auto;
    width: 100%;
}

/* Custom scrollbar for modal */
.pcd-modal-content::-webkit-scrollbar,
#pcd-order-details::-webkit-scrollbar {
    width: 8px;
}

.pcd-modal-content::-webkit-scrollbar-track,
#pcd-order-details::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.pcd-modal-content::-webkit-scrollbar-thumb,
#pcd-order-details::-webkit-scrollbar-thumb {
    background: rgba(136, 0, 238, 0.5);
    border-radius: 4px;
}

.pcd-modal-content::-webkit-scrollbar-thumb:hover,
#pcd-order-details::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 0, 238, 0.7);
}

/* Fix: Hide hamburger icon next to CLIENT REVIEW menu item */
@media (max-width: 1024px) {
    li.menu-item a[href*="client-review"] ~ *,
    li.menu-item a[href*="client_review"] ~ *,
    li.menu-item:has(a[href*="client-review"]) .menu-toggle,
    li.menu-item:has(a[href*="client_review"]) .menu-toggle,
    li.menu-item:has(a[href*="client-review"]) button,
    li.menu-item:has(a[href*="client_review"]) button,
    li.menu-item:has(a[href*="client-review"]) .submenu-toggle,
    li.menu-item:has(a[href*="client_review"]) .submenu-toggle,
    li.menu-item:has(a[href*="client-review"]) .dropdown-toggle,
    li.menu-item:has(a[href*="client_review"]) .dropdown-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}

/* Modal Close Button - Base styles with highest priority - Positioned over scrollbar area */
.pcd-modal-content .pcd-modal-close,
.pcd-modal-content.pcd-modal-large .pcd-modal-close,
#pcd-order-modal .pcd-modal-close,
#pcd-edit-order-modal .pcd-modal-close,
#pcd-edit-order-modal .pcd-modal-content .pcd-modal-close,
#pcd-edit-order-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close,
.pcd-modal .pcd-modal-close,
.pcd-dashboard-wrapper .pcd-modal-close,
.pcd-orders-page .pcd-modal-close {
    position: absolute !important;
    top: 20px !important; /* Positioned with spacing from top */
    right: 8px !important; /* Positioned over scrollbar area - scrollbar appears under the button */
    left: auto !important;
    font-size: 32px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    z-index: 1000002 !important; /* Higher than scrollbar to ensure close button appears above */
    /* Ensure close button is always visible with strong background */
    background: rgba(0, 0, 0, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    padding: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Ensure the X icon character is perfectly centered */
.pcd-modal-content .pcd-modal-close,
#pcd-order-modal .pcd-modal-close,
#pcd-edit-order-modal .pcd-modal-close,
.pcd-modal .pcd-modal-close {
    text-align: center !important;
    vertical-align: middle !important;
}

.pcd-modal-content .pcd-modal-close:hover,
#pcd-order-modal .pcd-modal-close:hover,
#pcd-edit-order-modal .pcd-modal-close:hover,
.pcd-modal .pcd-modal-close:hover,
.pcd-dashboard-wrapper .pcd-modal-close:hover,
.pcd-orders-page .pcd-modal-close:hover {
    color: #ffffff !important;
    background: rgba(136, 0, 238, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.1) !important;
}

#pcd-order-details h2 {
    /* Font size defined in typography system above */
    color: #ffffff;
}

.pcd-order-detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pcd-order-detail-item:last-child {
    border-bottom: none;
}

.pcd-order-detail-label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    display: block;
    font-size: clamp(13px, 1.6vw, 14px);
    line-height: 1.5;
}

.pcd-order-detail-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(14px, 1.7vw, 16px);
    line-height: 1.5;
}

/* Responsive Design - Keep linear table layout on larger screens */
/* Only convert to cards on very small mobile devices (480px and below) */
@media (max-width: 480px) {
    /* Stack orders table on very small mobile only */
    .pcd-orders-table-wrapper {
        overflow-x: visible;
    }
    
    /* Convert table to stacked card layout on very small mobile */
    .pcd-orders-table {
        min-width: auto;
        border: none;
        display: block;
    }
    
    .pcd-orders-table thead {
        display: none;
    }
    
    .pcd-orders-table tbody {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .pcd-orders-table tbody tr {
        display: block;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }
    
    .pcd-orders-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .pcd-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left !important;
    }
    
    .pcd-orders-table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
        .pcd-orders-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        font-size: clamp(11px, 1.3vw, 12px);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-right: 15px;
        min-width: 100px;
        flex-shrink: 0;
        line-height: 1.4;
    }
    
    .pcd-orders-table tbody td.pcd-order-actions {
        justify-content: center;
        align-items: center;
        padding-top: 15px;
        flex-direction: column;
    }
    
    .pcd-orders-table tbody td.pcd-order-actions::before {
        display: none;
    }
    
    .pcd-orders-table tbody td .pcd-view-order {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .pcd-dashboard-wrapper {
        flex-direction: column;
    }
    
    .pcd-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .pcd-mobile-toggle {
        display: flex;
    }
    
    .pcd-sidebar-nav {
        display: none;
    }
    
    .pcd-sidebar-nav.active {
        display: block;
    }
    
    .pcd-dashboard-content {
        padding: 20px;
    }
    
    .pcd-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pcd-modal-content {
        width: 95%;
        margin-top: 50px !important;
        margin-bottom: 20px !important;
        padding: 20px;
        padding-top: 50px !important;
        max-height: 85vh;
        position: relative !important;
    }
    
    /* Ensure close button is visible on mobile - applies to all modals including View Orders */
    .pcd-modal-content .pcd-modal-close,
    .pcd-modal-content.pcd-modal-large .pcd-modal-close,
    #pcd-order-modal .pcd-modal-close,
    #pcd-edit-order-modal .pcd-modal-close,
    #pcd-edit-order-modal .pcd-modal-content .pcd-modal-close,
    #pcd-edit-order-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close,
    .pcd-modal .pcd-modal-close {
        position: absolute !important;
        right: 8px !important; /* Match desktop - positioned over scrollbar area */
        top: 15px !important;
        font-size: 32px !important;
        z-index: 1000002 !important; /* Higher than scrollbar to ensure close button appears above */
        color: #ffffff !important;
        background: rgba(0, 0, 0, 0.9) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        line-height: 1 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .pcd-modal-content .pcd-modal-close:hover,
    #pcd-order-modal .pcd-modal-close:hover,
    #pcd-edit-order-modal .pcd-modal-close:hover,
    .pcd-modal .pcd-modal-close:hover {
        background: rgba(136, 0, 238, 0.8) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        color: #ffffff !important;
        transform: scale(1.1) !important;
    }
    
    /* Ensure order details content doesn't overlap close button */
    #pcd-order-modal .pcd-modal-content #pcd-order-details,
    #pcd-order-details {
        margin-top: 0;
        padding-top: 0;
    }
    
    /* On mobile, allow some top spacing but still center */
    .pcd-modal.active,
    .pcd-modal[style*="display: block"],
    .pcd-modal[style*="display:flex"] {
        align-items: flex-start;
        padding-top: 80px !important; /* Increased spacing from header on mobile */
        padding-bottom: 20px !important;
    }
}

/* Authentication Forms (Login & Registration) */
.pcd-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.6;
    box-sizing: border-box;
    margin: 0;
    position: relative;
    width: 100%;
    max-width: 100%;
}


/* Authentication Forms (Login & Registration) - Glassmorphism Design */
.pcd-auth-form-container {
    background: #000000;
    border: none;
    border-radius: 16px;
    padding: 50px 60px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

/* Login form container - same width as registration form (form only, not page) */
.pcd-auth-wrapper:has(#pcd-login-form) .pcd-auth-form-container,
.pcd-auth-wrapper #pcd-login-form ~ .pcd-auth-form-container,
.pcd-auth-form-container:has(#pcd-login-form) {
    padding: 50px 60px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Ensure login form container matches registration container width */
.pcd-auth-wrapper:has(#pcd-login-form) .pcd-auth-form-container {
    padding-left: 60px !important;
    padding-right: 60px !important;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

/* Wider container for registration form - Two column layout */
.pcd-registration-container {
    padding: 50px 60px !important;
    box-sizing: border-box;
}

/* Registration wrapper */
.pcd-registration-wrapper {
    box-sizing: border-box;
}

/* Sign Up form - Two column layout, wider */
.pcd-auth-wrapper #pcd-registration-form.pcd-form {
    max-width: 100%;
    width: 100%;
    min-height: 600px;
}

.pcd-auth-wrapper #pcd-registration-form .pcd-form-group {
    margin-bottom: 20px;
}

/* Registration form container uses theme width */

.pcd-auth-form-container h1 {
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 24px 0;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    width: 100%;
}

.pcd-auth-form-container h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8800EE;
    margin: 15px auto 0 auto;
}

.pcd-auth-wrapper .pcd-form {
    margin: 0;
    padding: 20px;
    border: none;
    max-width: 100%;
    width: 100%;
    min-height: 500px;
    box-sizing: border-box;
}

/* Login form - same width as registration form, but keep original height */
.pcd-auth-wrapper #pcd-login-form.pcd-form {
    min-height: auto;
    padding: 20px;
    max-width: 100%;
    width: 100%;
}

/* Login form uses same styling as registration form - no special overrides needed */

.pcd-auth-wrapper .pcd-form-group {
    margin-bottom: 20px;
    padding: 0;
}

.pcd-auth-wrapper .pcd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: clamp(13px, 1.6vw, 14px);
    text-align: left;
    line-height: 1.5;
}

/* Match label styling from Edit Profile */
.pcd-auth-wrapper .pcd-form-group .required {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 4px;
    font-size: 0.9em;
    font-weight: 400;
}

/* Input fields in auth forms - EXACTLY match Edit Profile design */
.pcd-auth-wrapper .pcd-form-group input[type="text"],
.pcd-auth-wrapper .pcd-form-group input[type="email"],
.pcd-auth-wrapper .pcd-form-group input[type="tel"],
.pcd-auth-wrapper .pcd-form-group input[type="password"],
.pcd-auth-wrapper .pcd-form-group select:not(.pcd-phone-code) {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: clamp(14px, 1.7vw, 16px);
    color: #000000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
    margin: 0;
    vertical-align: middle;
}

.pcd-auth-wrapper .pcd-form-group input:focus {
    outline: none;
    border: 1px solid #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
}

.pcd-auth-wrapper .pcd-form-group input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Ensure buttons match Edit Profile exactly - with higher specificity */
.pcd-auth-wrapper .pcd-button-primary,
.pcd-auth-wrapper button.pcd-button-primary,
.pcd-auth-wrapper .pcd-form-group button[type="submit"],
.pcd-auth-wrapper .pcd-form button[type="submit"],
.pcd-auth-wrapper .pcd-form .pcd-button-primary,
.pcd-auth-wrapper form button[type="submit"].pcd-button-primary {
    background: #8800EE !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    font-size: clamp(14px, 1.8vw, 16px) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    width: 100% !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.pcd-auth-wrapper .pcd-button-primary:hover,
.pcd-auth-wrapper button.pcd-button-primary:hover,
.pcd-auth-wrapper .pcd-form-group button[type="submit"]:hover,
.pcd-auth-wrapper .pcd-form button[type="submit"]:hover,
.pcd-auth-wrapper .pcd-form .pcd-button-primary:hover,
.pcd-auth-wrapper form button[type="submit"].pcd-button-primary:hover {
    background: #7700DD !important;
}

/* Side-by-side form fields */
.pcd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

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

.pcd-form-col input {
    margin-bottom: 5px;
}

.pcd-form-col input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.pcd-form-col input[type="text"],
.pcd-form-col input[type="password"] {
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: clamp(14px, 1.7vw, 16px);
    color: #000000;
    line-height: 1.5;
    margin: 0;
    vertical-align: middle;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.pcd-form-col input[type="text"]:focus,
.pcd-form-col input[type="password"]:focus {
    outline: none;
    border: 1px solid #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
}

/* Password wrapper inside form-col */
.pcd-form-col .pcd-password-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.pcd-form-col .pcd-password-wrapper input[type="password"],
.pcd-form-col .pcd-password-wrapper input[type="text"] {
    padding: 12px 45px 12px 15px;
}

/* Form Validation Styles - User Friendly */
.pcd-field-invalid {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15) !important;
    background-color: #fff8f8 !important;
}

.pcd-field-error-message {
    display: block;
    color: #ff6b6b;
    font-size: clamp(12px, 1.4vw, 13px);
    margin-top: 6px;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
    order: 3;
}

.pcd-field-error-message::before {
    content: '⚠';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* Ensure error messages appear below input fields in form-col */
.pcd-form-col .pcd-field-error-message {
    margin-top: 4px;
    margin-bottom: 0;
    order: 3;
    width: 100%;
    display: block;
    text-align: left;
}

/* Ensure error messages appear below password wrappers */
.pcd-password-wrapper + .pcd-field-error-message {
    margin-top: 6px;
    margin-bottom: 0;
    width: 100%;
    display: block;
    text-align: left;
}

/* Ensure error messages appear below phone wrappers */
.pcd-phone-input-wrapper + .pcd-field-error-message {
    margin-top: 6px;
    margin-bottom: 0;
    width: 100%;
    display: block;
}

.pcd-form-group input.pcd-field-invalid,
.pcd-form-group select.pcd-field-invalid {
    background-color: #fff8f8 !important;
    transition: all 0.3s ease;
}

.pcd-form-group input.pcd-field-valid:not(:placeholder-shown),
.pcd-form-group select.pcd-field-valid {
    border-color: #51cf66;
    background-color: #f8fff9;
}

.pcd-form-group input.pcd-field-valid:not(:placeholder-shown):focus,
.pcd-form-group select.pcd-field-valid:focus {
    border-color: #51cf66;
    box-shadow: 0 0 0 2px rgba(81, 207, 102, 0.15);
}

/* Success indicator */
.pcd-field-success-message {
    display: flex;
    align-items: center;
    color: #51cf66;
    font-size: clamp(12px, 1.4vw, 13px);
    margin-top: 6px;
    font-weight: 400;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.pcd-field-success-message::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

/* Password Toggle (Lock/Unlock Icon) */
.pcd-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.pcd-password-wrapper input[type="password"],
.pcd-password-wrapper input[type="text"] {
    padding: 12px 45px 12px 15px;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #ffffff;
    font-size: clamp(14px, 1.7vw, 16px);
    color: #000000;
    margin: 0;
    vertical-align: middle;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.pcd-password-wrapper input[type="password"]:focus,
.pcd-password-wrapper input[type="text"]:focus {
    outline: none;
    border: 1px solid #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
}

.pcd-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.6);
    font-size: 18px;
    z-index: 10;
    transition: color 0.3s ease;
    width: 24px;
    height: 24px;
    margin: 0;
    line-height: 1;
    text-decoration: none !important;
    outline: none !important;
}

.pcd-toggle-password:focus {
    outline: 2px solid #8800EE;
    outline-offset: 2px;
    border-radius: 3px;
    text-decoration: none !important;
}

.pcd-toggle-password:hover {
    color: rgba(0, 0, 0, 0.8);
}

.pcd-toggle-password:focus {
    outline: 2px solid #8800EE;
    outline-offset: 2px;
    border-radius: 3px;
}

.pcd-lock-icon {
    display: block;
    user-select: none;
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.pcd-lock-icon::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.pcd-password-wrapper.show-password .pcd-lock-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='12' cy='16' r='1'%3E%3C/circle%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0'%3E%3C/path%3E%3C/svg%3E");
}

.pcd-input-label {
    font-size: clamp(11px, 1.3vw, 12px);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-top: 4px;
    margin-bottom: 0;
    order: 2;
    text-align: left;
    line-height: 1.4;
}

/* Phone input with country code */
.pcd-phone-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pcd-phone-code {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    padding: 12px 30px 12px 12px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    color: #000000 !important;
    font-size: clamp(14px, 1.7vw, 16px) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    font-family: inherit !important;
    height: auto !important;
    min-height: 44px !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

/* Role select dropdown styling */
.pcd-role-select {
    width: 100%;
    padding: 12px 35px 12px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: clamp(14px, 1.7vw, 16px);
    color: #000000;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pcd-role-select:focus {
    outline: none;
    border-color: #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
}

.pcd-phone-code:focus {
    outline: none;
    border-color: #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
    background-color: #ffffff;
}

.pcd-phone-input-wrapper input[type="tel"] {
    flex: 1 !important;
    min-width: 0 !important;
    border-radius: 4px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 12px 15px !important;
    width: auto !important;
    line-height: 1.5 !important;
    font-size: clamp(14px, 1.7vw, 16px) !important;
    color: #000000 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    min-height: 44px !important;
    height: auto !important;
}

.pcd-phone-input-wrapper input[type="tel"]:focus {
    outline: none;
    border-color: #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
}

.pcd-phone-input-wrapper:focus-within .pcd-phone-code {
    border-color: #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
}

.pcd-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400 !important;
}

.pcd-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.pcd-auth-wrapper .pcd-message {
    margin-bottom: 25px;
    margin-top: 0;
    display: block;
}

.pcd-message-success {
    background: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.pcd-message-error {
    background: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.pcd-message ul {
    margin: 0;
    padding-left: 20px;
}

.pcd-message li {
    margin-bottom: 5px;
}

.pcd-message li:last-child {
    margin-bottom: 0;
}

.pcd-auth-footer {
    margin-top: 16px;
    padding-top: 16px;
    padding-bottom: 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Remove extra space below footer for login form */
#pcd-login-form + .pcd-auth-footer,
#pcd-login-form ~ .pcd-auth-footer,
.pcd-auth-wrapper:has(#pcd-login-form) .pcd-auth-footer {
    margin-bottom: 0;
    padding-bottom: 0;
}

.pcd-auth-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(13px, 1.6vw, 14px);
    line-height: 1.5;
}

.pcd-auth-footer a {
    color: #8800EE;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pcd-auth-footer a:hover {
    color: #aa00ff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pcd-auth-wrapper {
        padding: 15px;
        min-height: 100vh;
    }
    
    .pcd-auth-form-container {
        padding: 60px 45px;
        border-radius: 12px;
    }
    
    /* Ensure login form container maintains width on tablet */
    .pcd-auth-wrapper:has(#pcd-login-form) .pcd-auth-form-container {
        padding: 60px 45px !important;
    }
    
    .pcd-registration-container {
        padding: 60px 45px !important;
    }
    
    .pcd-auth-form-container h1 {
        font-size: 28px;
    }
    
    
    .pcd-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .pcd-form-col {
        margin-bottom: 20px;
    }
    
    .pcd-form-col:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .pcd-dashboard-home h1,
    .pcd-orders-page h1,
    .pcd-profile-page h1,
    .pcd-password-page h1 {
        font-size: 24px;
    }
    
    .pcd-form {
        padding: 20px;
    }
    
    .pcd-auth-wrapper {
        padding: 10px;
        min-height: 100vh;
    }
    
    /* Reduce wrapper padding for both forms on mobile to increase width */
    .pcd-auth-wrapper:has(#pcd-login-form),
    .pcd-auth-wrapper:has(#pcd-registration-form) {
        padding: 10px 5px !important;
    }
    
    .pcd-auth-form-container {
        padding: 40px 25px;
        border-radius: 12px;
    }
    
    /* Make both forms same width on mobile - reduce side padding */
    .pcd-auth-wrapper:has(#pcd-login-form) .pcd-auth-form-container,
    .pcd-registration-container {
        padding: 40px 20px !important;
    }
    
    .pcd-auth-wrapper .pcd-form {
        padding: 0;
    }
    
    .pcd-auth-form-container h1 {
        font-size: clamp(20px, 2.5vw, 24px);
        margin-bottom: 25px;
    }
    
}

/* Progress Bar Styles */
.pcd-progress-bar-container {
    margin: 20px 0;
}

.pcd-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.pcd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8800EE 0%, #aa00ff 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.pcd-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.pcd-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.pcd-progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.pcd-progress-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.pcd-progress-step.completed:not(:last-child)::before {
    background: #8800EE;
}

.pcd-progress-step-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.pcd-progress-step.completed .pcd-progress-step-indicator {
    background: #8800EE;
    border-color: #8800EE;
}

.pcd-progress-step.completed .pcd-progress-step-indicator::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.pcd-progress-step.active .pcd-progress-step-indicator {
    background: #8800EE;
    border-color: #aa00ff;
    box-shadow: 0 0 0 4px rgba(136, 0, 238, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(136, 0, 238, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(136, 0, 238, 0.1); }
}

.pcd-progress-step-label {
    font-size: clamp(11px, 1.2vw, 12px);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.pcd-progress-step.active .pcd-progress-step-label,
.pcd-progress-step.completed .pcd-progress-step-label {
    color: #ffffff;
    font-weight: 500;
}

.pcd-progress-status-text {
    text-align: center;
    margin-top: 10px;
    font-size: clamp(13px, 1.6vw, 14px);
    color: rgba(255, 255, 255, 0.9);
}

.pcd-progress-status-text strong {
    color: #8800EE;
    font-weight: 600;
}

/* Responsive Progress Bar */
@media (max-width: 768px) {
    .pcd-progress-steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .pcd-progress-step {
        flex: 0 0 calc(50% - 7.5px);
        min-width: 120px;
    }
    
    .pcd-progress-step:not(:last-child)::before {
        display: none;
    }
    
    .pcd-progress-step-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .pcd-progress-step {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
    
    .pcd-progress-step-label {
        font-size: 11px;
    }
}

/* Admin Dashboard Styles */
.pcd-admin-dashboard-home h1 {
    /* Font size defined in typography system above */
    color: #ffffff;
}

.pcd-admin-dashboard-home h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8800EE;
    margin-top: 10px;
}

.pcd-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.pcd-admin-welcome {
    flex: 1;
}

.pcd-admin-greeting {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(14px, 1.6vw, 16px);
    margin: 5px 0 0 0;
}

.pcd-admin-actions-header {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.pcd-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.pcd-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pcd-stat-card.pcd-stat-total {
    border-left: 4px solid #8800EE;
}

.pcd-stat-card.pcd-stat-pending {
    border-left: 4px solid #ff9800;
}

.pcd-stat-card.pcd-stat-processing {
    border-left: 4px solid #2196f3;
}

.pcd-stat-card.pcd-stat-completed {
    border-left: 4px solid #4caf50;
}

.pcd-stat-icon {
    font-size: clamp(32px, 4vw, 40px);
    line-height: 1;
}

.pcd-stat-content h3 {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.pcd-stat-content p {
    margin: 5px 0 0 0;
    font-size: clamp(12px, 1.4vw, 14px);
    color: rgba(255, 255, 255, 0.7);
}

.pcd-admin-actions {
    margin-top: 30px;
    text-align: center;
}

.pcd-admin-orders-header,
.pcd-admin-customers-header,
.pcd-admin-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.pcd-admin-orders-page h1,
.pcd-admin-customers-page h1,
.pcd-admin-profile-page h1,
.pcd-admin-create-order-page h1 {
    /* Font size defined in typography system above */
    color: #ffffff;
}

.pcd-admin-orders-page h1::after,
.pcd-admin-customers-page h1::after,
.pcd-admin-profile-page h1::after,
.pcd-admin-create-order-page h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8800EE;
    margin-top: 10px;
}

.pcd-admin-create-order-header {
    margin-bottom: 30px;
}

/* Enhanced form styling for create order page */
.pcd-admin-create-order-page {
    max-width: 800px;
    margin: 0 auto;
}

.pcd-admin-create-order-page .pcd-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pcd-admin-create-order-page .pcd-form-group {
    margin-bottom: 18px;
}

.pcd-admin-create-order-page .pcd-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #ffffff;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.5;
}

.pcd-admin-create-order-page .pcd-form-group .required {
    color: #ff4444;
    margin-left: 3px;
}

.pcd-admin-create-order-page .pcd-form-group input[type="text"],
.pcd-admin-create-order-page .pcd-form-group textarea,
.pcd-admin-create-order-page .pcd-form-group select {
    width: 100%;
    padding: 10px 15px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: clamp(15px, 1.8vw, 17px);
    color: #000000;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

.pcd-admin-create-order-page .pcd-form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.pcd-admin-create-order-page .pcd-form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.pcd-admin-create-order-page .pcd-form-group input[type="text"]:focus,
.pcd-admin-create-order-page .pcd-form-group textarea:focus,
.pcd-admin-create-order-page .pcd-form-group select:focus {
    outline: none;
    border-color: #8800EE;
    box-shadow: 0 0 0 4px rgba(136, 0, 238, 0.15);
    background-color: #ffffff;
}

.pcd-admin-create-order-page .pcd-form-group input[type="text"]:hover,
.pcd-admin-create-order-page .pcd-form-group textarea:hover,
.pcd-admin-create-order-page .pcd-form-group select:hover {
    border-color: #b366ff;
}

.pcd-admin-create-order-page .pcd-form-group input::placeholder,
.pcd-admin-create-order-page .pcd-form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-style: italic;
}

.pcd-admin-create-order-page .pcd-form-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pcd-admin-create-order-page .pcd-button-primary {
    padding: 14px 32px;
    font-size: clamp(15px, 1.9vw, 17px);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(136, 0, 238, 0.3);
}

.pcd-admin-create-order-page .pcd-button-primary:hover {
    background: #7700DD;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(136, 0, 238, 0.4);
}

.pcd-select {
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: clamp(14px, 1.7vw, 16px);
    color: #000000;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
    width: 100%;
}

.pcd-select:focus {
    outline: none;
    border-color: #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
}

.pcd-admin-filters {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.pcd-filters-form {
    width: 100%;
}

.pcd-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: end;
}

.pcd-filter-row-linear {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.pcd-filter-row-linear .pcd-filter-group {
    flex: 1;
    min-width: 150px;
}

.pcd-filter-row-linear .pcd-filter-actions {
    flex-shrink: 0;
}

.pcd-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.pcd-filter-group .pcd-search-indicator {
    position: absolute;
    right: 12px;
    top: 32px;
    font-size: 16px;
    pointer-events: none;
    opacity: 0.6;
}

.pcd-filter-group label {
    font-size: clamp(12px, 1.4vw, 13px);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.pcd-filter-input {
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: clamp(14px, 1.7vw, 16px);
    color: #000000;
    width: 100%;
}

.pcd-filter-input:focus {
    outline: none;
    border-color: #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
}

.pcd-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pcd-filter-actions .pcd-button,
.pcd-filter-actions .pcd-button-primary,
.pcd-filter-actions .pcd-button-secondary,
.pcd-filter-actions a.pcd-button,
.pcd-filter-actions a.pcd-button-secondary {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    box-sizing: border-box;
    line-height: 1.5;
    text-decoration: none;
}

.pcd-admin-filters form {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: flex-end;
}

.pcd-filter-select {
    flex: 1;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: clamp(14px, 1.7vw, 16px);
    color: #000000;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.pcd-filter-select:focus {
    outline: none;
    border-color: #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.1);
}

.pcd-status-select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: clamp(12px, 1.4vw, 13px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcd-status-select:focus {
    outline: none;
    border-color: #8800EE;
    background: rgba(255, 255, 255, 0.15);
}

/* Order Actions */
.pcd-order-actions {
    white-space: nowrap;
}

.pcd-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pcd-action-buttons button {
    padding: 6px 12px;
    font-size: clamp(12px, 1.4vw, 13px);
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pcd-btn-view {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.pcd-btn-view:hover {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.6);
}

.pcd-btn-edit {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.pcd-btn-edit:hover {
    background: rgba(255, 152, 0, 0.3);
    border-color: rgba(255, 152, 0, 0.6);
}

.pcd-btn-delete {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.pcd-btn-delete:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.6);
}

.pcd-action-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Edit Order Modal */
.pcd-modal-large {
    max-width: 700px;
    width: 90%;
    z-index: 1000000 !important;
    margin-top: 0 !important; /* Remove margin-top to work with flexbox centering */
    padding-top: 50px !important;
    padding-right: 30px !important; /* Match View Order modal - same padding as .pcd-modal-content */
    position: relative !important;
    max-height: calc(100vh - 280px) !important; /* Reduced height to prevent touching header */
    overflow-y: auto; /* Allow scrolling if content exceeds max-height */
    overflow-x: hidden;
    /* Ensure scrollbar doesn't overlap close button */
    scrollbar-gutter: stable;
}

/* Ensure edit order modal has proper spacing and close button visibility */
#pcd-edit-order-modal .pcd-modal-content,
#pcd-edit-order-modal .pcd-modal-large {
    margin-top: 0 !important; /* Remove margin-top when using flexbox centering */
    padding-top: 50px !important;
    padding-right: 30px !important; /* Match View Order modal - same padding as .pcd-modal-content */
    z-index: 1000000 !important;
    max-height: calc(100vh - 280px) !important; /* Reduced height to prevent touching header */
    position: relative !important; /* Ensure close button positions relative to this container */
}

/* Ensure view order modal has proper spacing and close button visibility */
#pcd-order-modal .pcd-modal-content {
    margin-top: 0 !important; /* Remove margin-top when using flexbox centering */
    padding-top: 50px !important;
    z-index: 1000000 !important;
    max-height: calc(100vh - 280px) !important; /* Reduced height to prevent touching header */
}

/* GLOBAL MODAL CLOSE BUTTON - Standard styling for ALL modals */
/* Applies to: View Order, Edit Order, Order Details, and ALL other modals in customer and admin dashboards */
/* Scrollbar appears under the close button */
.pcd-modal-close,
.pcd-modal-content .pcd-modal-close,
.pcd-modal-large .pcd-modal-close,
.pcd-modal-content.pcd-modal-large .pcd-modal-close,
#pcd-order-modal .pcd-modal-close,
#pcd-order-modal .pcd-modal-content .pcd-modal-close,
#pcd-edit-order-modal .pcd-modal-close,
#pcd-edit-order-modal .pcd-modal-content .pcd-modal-close,
#pcd-edit-order-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close,
#pcd-edit-order-modal.pcd-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close,
#pcd-order-details .pcd-modal-close {
    z-index: 1000002 !important; /* Higher than scrollbar to ensure close button appears above scrollbar */
    position: absolute !important;
    right: 8px !important; /* Positioned over scrollbar area - scrollbar appears under the button */
    top: 20px !important; /* Positioned with spacing from top */
    left: auto !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 32px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    float: none !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Ensure X character is perfectly centered in Edit Order modal */
#pcd-edit-order-modal .pcd-modal-close::before,
#pcd-edit-order-modal .pcd-modal-close::after,
.pcd-modal-large .pcd-modal-close::before,
.pcd-modal-large .pcd-modal-close::after {
    content: '' !important;
    display: none !important;
}

/* Additional text formatting for Edit Order modal close button - Already covered by global rule above */
#pcd-edit-order-modal .pcd-modal-close,
.pcd-modal-large .pcd-modal-close {
    text-indent: 0 !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
    /* All positioning and styling is handled by the global rule above */
}

/* GLOBAL MODAL CLOSE BUTTON HOVER - Applies to ALL modals */
.pcd-modal-close:hover,
.pcd-modal-content .pcd-modal-close:hover,
#pcd-order-modal .pcd-modal-close:hover,
#pcd-order-modal .pcd-modal-content .pcd-modal-close:hover,
#pcd-edit-order-modal .pcd-modal-close:hover,
#pcd-edit-order-modal .pcd-modal-content .pcd-modal-close:hover,
#pcd-order-details .pcd-modal-close:hover {
    background: rgba(136, 0, 238, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

.pcd-modal-large .pcd-form-group {
    margin-bottom: 20px;
}

.pcd-modal-large .pcd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: clamp(14px, 1.7vw, 15px);
}

.pcd-modal-large .pcd-form-group input[type="text"],
.pcd-modal-large .pcd-form-group textarea,
.pcd-modal-large .pcd-form-group select {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: clamp(14px, 1.7vw, 16px);
    color: #000000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pcd-modal-large .pcd-form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.pcd-modal-large .pcd-form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.pcd-modal-large .pcd-form-group input:focus,
.pcd-modal-large .pcd-form-group textarea:focus,
.pcd-modal-large .pcd-form-group select:focus {
    outline: none;
    border-color: #8800EE;
    box-shadow: 0 0 0 3px rgba(136, 0, 238, 0.15);
}

.pcd-modal-large .pcd-form-group .pcd-help-text {
    margin-top: 5px;
    font-size: clamp(12px, 1.4vw, 13px);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.pcd-modal-large .pcd-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pcd-modal-large h2 {
    margin: 0 0 20px 0;
    color: #ffffff;
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 600;
}

.pcd-status-update-form {
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.pcd-update-status-btn {
    padding: 6px 12px;
    background: #8800EE;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: clamp(11px, 1.3vw, 12px);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pcd-update-status-btn:hover {
    background: #9900ff;
}

.pcd-update-status-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pcd-customers-table-wrapper,
.pcd-orders-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
}

/* Ensure tables use full available width */
.pcd-customers-table-wrapper {
    width: 100%;
}

.pcd-customers-table {
    width: 100%;
    min-width: 1000px; /* Increased minimum width for better readability */
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    table-layout: auto;
}


.pcd-customers-table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 18px 22px;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    font-size: clamp(14px, 1.6vw, 15px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.pcd-customers-table td {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(14px, 1.6vw, 15px);
    word-wrap: break-word;
}

/* Better column widths for customer table */
.pcd-customers-table th:nth-child(1),
.pcd-customers-table td:nth-child(1) {
    min-width: 160px;
    width: 18%;
}

.pcd-customers-table th:nth-child(2),
.pcd-customers-table td:nth-child(2) {
    min-width: 220px;
    width: 22%;
}

.pcd-customers-table th:nth-child(3),
.pcd-customers-table td:nth-child(3) {
    min-width: 160px;
    width: 18%;
}

.pcd-customers-table th:nth-child(4),
.pcd-customers-table td:nth-child(4) {
    min-width: 110px;
    width: 12%;
    text-align: center;
}

.pcd-customers-table th:nth-child(5),
.pcd-customers-table td:nth-child(5) {
    min-width: 140px;
    width: 15%;
}

.pcd-customers-table th:nth-child(6),
.pcd-customers-table td:nth-child(6) {
    min-width: 130px;
    width: 15%;
    text-align: center;
}

.pcd-customers-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.pcd-customer-actions {
    white-space: nowrap;
}

.pcd-view-customer-orders {
    padding: 6px 12px;
    background: #8800EE;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: clamp(12px, 1.4vw, 13px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcd-view-customer-orders:hover {
    background: #9900ff;
}

.pcd-customer-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pcd-customer-info p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(13px, 1.5vw, 14px);
}

.pcd-customer-orders-list {
    margin-top: 20px;
}

.pcd-profile-sections {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.pcd-profile-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pcd-profile-section h2 {
    /* Font size defined in typography system above */
    margin: 0 0 20px 0;
    color: #ffffff;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.pcd-profile-actions {
    margin-top: 20px;
}

.pcd-button-danger {
    background: #f44336;
    color: #ffffff;
}

.pcd-button-danger:hover {
    background: #d32f2f;
}

@media (max-width: 768px) {
    .pcd-admin-header,
    .pcd-admin-orders-header,
    .pcd-admin-customers-header,
    .pcd-admin-profile-header {
        flex-direction: column;
    }
    
    .pcd-admin-actions-header {
        width: 100%;
    }
    
    .pcd-admin-actions-header .pcd-button {
        flex: 1;
    }
    
    .pcd-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pcd-admin-filters {
        flex-direction: column;
    }
    
    .pcd-admin-filters form {
        flex-direction: column;
    }
    
    .pcd-filter-row {
        grid-template-columns: 1fr;
    }
    
    .pcd-filter-row-linear {
        flex-direction: column;
    }
    
    .pcd-filter-row-linear .pcd-filter-group {
        width: 100%;
        min-width: 100%;
    }
    
    .pcd-filter-row-linear .pcd-filter-actions {
        width: 100%;
    }
    
    .pcd-filter-row-linear .pcd-filter-actions .pcd-button {
        flex: 1;
    }
    
    .pcd-filter-select,
    .pcd-filter-input {
        width: 100%;
    }
    
    .pcd-filter-actions {
        width: 100%;
    }
    
    .pcd-filter-actions .pcd-button {
        flex: 1;
    }
    
    .pcd-status-update-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pcd-update-status-btn {
        width: 100%;
        margin-top: 8px;
    }
    
    /* Customer table - keep linear on tablets, only convert to cards on very small mobile */
    
    /* Reduce padding on mobile */
    .pcd-dashboard-content:has(.pcd-admin-customers-page),
    .pcd-dashboard-content:has(.pcd-admin-orders-page) {
        padding: 20px 15px;
    }
    
    .pcd-admin-customers-page,
    .pcd-admin-orders-page {
        padding: 0;
    }
    
    .pcd-admin-customers-header,
    .pcd-admin-orders-header {
        margin-bottom: 20px;
    }
    
    .pcd-admin-filters {
        padding: 15px;
    }
}

/* Tablet Styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .pcd-dashboard-content:has(.pcd-admin-customers-page),
    .pcd-dashboard-content:has(.pcd-admin-orders-page) {
        padding: 25px 30px;
        overflow-y: visible;
    }
    
    .pcd-customers-table {
        min-width: 800px;
    }
    
    .pcd-customers-table th,
    .pcd-customers-table td {
        padding: 16px 18px;
        font-size: clamp(13px, 1.5vw, 14px);
    }
    
    /* Ensure modal close button is visible on tablet */
    .pcd-modal-content {
        margin-top: 60px !important;
        margin-bottom: 40px !important;
        padding-top: 50px !important;
        position: relative !important;
    }
    
    .pcd-modal.active .pcd-modal-content,
    .pcd-modal[style*="display: block"] .pcd-modal-content,
    .pcd-modal[style*="display:flex"] .pcd-modal-content {
        margin-top: 60px !important;
        margin-bottom: 40px !important;
    }
    
    .pcd-modal-content .pcd-modal-close,
    #pcd-order-modal .pcd-modal-close {
        position: absolute !important;
        right: 20px !important; /* View Order - positioned to the left of scrollbar, looks good */
        top: 20px !important; /* View Order - positioned with spacing from top */
        left: auto !important; /* Force right positioning, override any left */
        z-index: 1000002 !important; /* Higher than scrollbar to ensure close button appears above */
        background: rgba(0, 0, 0, 0.9) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 32px !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        float: none !important;
        transform: none !important;
    }
    
    /* Edit Order Modal - Close button EXACT COPY of View Order - includes .pcd-modal-large */
    #pcd-edit-order-modal .pcd-modal-close,
    #pcd-edit-order-modal .pcd-modal-content .pcd-modal-close,
    #pcd-edit-order-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close {
        position: absolute !important;
        right: 8px !important; /* View Order - positioned over scrollbar area - scrollbar appears under the button */
        top: 20px !important; /* View Order - positioned with spacing from top */
        left: auto !important; /* Force right positioning, override any left */
        z-index: 1000002 !important; /* Higher than scrollbar to ensure close button appears above */
        background: rgba(0, 0, 0, 0.9) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 32px !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        float: none !important;
        transform: none !important;
    }
    
    .pcd-modal-content .pcd-modal-close:hover,
    .pcd-modal-content.pcd-modal-large .pcd-modal-close:hover,
    #pcd-order-modal .pcd-modal-close:hover,
    #pcd-edit-order-modal .pcd-modal-close:hover,
    #pcd-edit-order-modal .pcd-modal-content .pcd-modal-close:hover,
    #pcd-edit-order-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close:hover {
        background: rgba(136, 0, 238, 0.8) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        color: #ffffff !important;
        transform: scale(1.1) !important;
    }
    
    .pcd-filter-row-linear {
        gap: 12px;
    }
    
    .pcd-filter-group {
        min-width: 140px;
    }
    
    .pcd-action-buttons {
        gap: 6px;
    }
    
    .pcd-action-buttons button {
        padding: 7px 14px;
        font-size: clamp(12px, 1.5vw, 13px);
    }
    
    /* Preserve button colors on tablet - View (Blue) */
    .pcd-action-buttons .pcd-btn-view,
    .pcd-action-buttons .pcd-view-order {
        background: rgba(33, 150, 243, 0.2) !important;
        color: #2196F3 !important;
        border: 1px solid rgba(33, 150, 243, 0.4) !important;
    }
    
    .pcd-action-buttons .pcd-btn-view:hover,
    .pcd-action-buttons .pcd-view-order:hover {
        background: rgba(33, 150, 243, 0.3) !important;
        border-color: rgba(33, 150, 243, 0.6) !important;
    }
    
    /* Preserve button colors on tablet - Edit (Orange) */
    .pcd-action-buttons .pcd-btn-edit,
    .pcd-action-buttons .pcd-edit-order {
        background: rgba(255, 152, 0, 0.2) !important;
        color: #FF9800 !important;
        border: 1px solid rgba(255, 152, 0, 0.4) !important;
    }
    
    .pcd-action-buttons .pcd-btn-edit:hover,
    .pcd-action-buttons .pcd-edit-order:hover {
        background: rgba(255, 152, 0, 0.3) !important;
        border-color: rgba(255, 152, 0, 0.6) !important;
    }
    
    /* Preserve button colors on tablet - Delete (Red) */
    .pcd-action-buttons .pcd-btn-delete,
    .pcd-action-buttons .pcd-delete-order {
        background: rgba(244, 67, 54, 0.2) !important;
        color: #f44336 !important;
        border: 1px solid rgba(244, 67, 54, 0.4) !important;
    }
    
    .pcd-action-buttons .pcd-btn-delete:hover,
    .pcd-action-buttons .pcd-delete-order:hover {
        background: rgba(244, 67, 54, 0.3) !important;
        border-color: rgba(244, 67, 54, 0.6) !important;
    }
}

/* Mobile Styles (up to 768px) */
@media (max-width: 768px) {
    .pcd-dashboard-wrapper {
        margin: 10px;
        border-radius: 6px;
    }
    
    .pcd-dashboard-content {
        padding: 20px 15px;
        overflow-y: visible;
    }
    
    .pcd-dashboard-content:has(.pcd-admin-customers-page),
    .pcd-dashboard-content:has(.pcd-admin-orders-page) {
        padding: 15px 10px;
        overflow-y: visible;
    }
    
    .pcd-admin-customers-page h1,
    .pcd-admin-orders-page h1 {
        font-size: clamp(20px, 4vw, 24px);
        margin-bottom: 15px;
    }
    
    .pcd-admin-customers-header,
    .pcd-admin-orders-header {
        margin-bottom: 15px;
    }
    
    .pcd-admin-filters {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .pcd-filter-row-linear {
        gap: 10px;
    }
    
    .pcd-filter-group label {
        font-size: clamp(11px, 2.5vw, 12px);
        margin-bottom: 6px;
    }
    
    .pcd-filter-input,
    .pcd-filter-select {
        padding: 10px 12px;
        font-size: clamp(13px, 3vw, 14px);
    }
    
    .pcd-filter-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .pcd-filter-actions .pcd-button {
        width: 100%;
    }
    
    .pcd-customers-table-wrapper {
        margin-top: 15px;
    }
    
    .pcd-customers-table tr {
        padding: 12px;
    }
    
    .pcd-customers-table td {
        padding: 10px 0;
        font-size: clamp(12px, 3vw, 13px);
    }
    
    .pcd-customers-table td::before {
        font-size: clamp(11px, 2.5vw, 12px);
        min-width: 100px;
        margin-right: 10px;
    }
    
    .pcd-action-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .pcd-action-buttons button {
        width: 100%;
        padding: 8px 12px;
        font-size: clamp(11px, 2.5vw, 12px);
    }
    
    /* Preserve button colors on tablet - View (Blue) */
    .pcd-action-buttons .pcd-btn-view,
    .pcd-action-buttons .pcd-view-order {
        background: rgba(33, 150, 243, 0.2) !important;
        color: #2196F3 !important;
        border: 1px solid rgba(33, 150, 243, 0.4) !important;
    }
    
    .pcd-action-buttons .pcd-btn-view:hover,
    .pcd-action-buttons .pcd-view-order:hover {
        background: rgba(33, 150, 243, 0.3) !important;
        border-color: rgba(33, 150, 243, 0.6) !important;
    }
    
    /* Preserve button colors on tablet - Edit (Orange) */
    .pcd-action-buttons .pcd-btn-edit,
    .pcd-action-buttons .pcd-edit-order {
        background: rgba(255, 152, 0, 0.2) !important;
        color: #FF9800 !important;
        border: 1px solid rgba(255, 152, 0, 0.4) !important;
    }
    
    .pcd-action-buttons .pcd-btn-edit:hover,
    .pcd-action-buttons .pcd-edit-order:hover {
        background: rgba(255, 152, 0, 0.3) !important;
        border-color: rgba(255, 152, 0, 0.6) !important;
    }
    
    /* Preserve button colors on tablet - Delete (Red) */
    .pcd-action-buttons .pcd-btn-delete,
    .pcd-action-buttons .pcd-delete-order {
        background: rgba(244, 67, 54, 0.2) !important;
        color: #f44336 !important;
        border: 1px solid rgba(244, 67, 54, 0.4) !important;
    }
    
    .pcd-action-buttons .pcd-btn-delete:hover,
    .pcd-action-buttons .pcd-delete-order:hover {
        background: rgba(244, 67, 54, 0.3) !important;
        border-color: rgba(244, 67, 54, 0.6) !important;
    }
    
    .pcd-view-customer-orders {
        width: 100%;
        padding: 10px;
        font-size: clamp(12px, 3vw, 13px);
    }
}

/* Small Mobile Styles (up to 480px) */
@media (max-width: 480px) {
    .pcd-dashboard-wrapper {
        margin: 5px;
        border-width: 2px;
    }
    
    .pcd-dashboard-content {
        padding: 15px 10px;
        overflow-y: visible;
    }
    
    .pcd-dashboard-content:has(.pcd-admin-customers-page),
    .pcd-dashboard-content:has(.pcd-admin-orders-page) {
        padding: 10px 5px;
        overflow-y: visible;
    }
    
    .pcd-admin-customers-page h1,
    .pcd-admin-orders-page h1 {
        font-size: 18px;
    }
    
    .pcd-admin-filters {
        padding: 10px;
    }
    
    /* Customer table - convert to cards on very small mobile */
    .pcd-customers-table-wrapper {
        overflow-x: visible;
    }
    
    .pcd-customers-table {
        min-width: auto;
        border: none;
        display: block;
        width: 100%;
    }
    
    .pcd-customers-table thead {
        display: none;
    }
    
    .pcd-customers-table tbody {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0;
    }
    
    .pcd-customers-table-wrapper {
        padding: 0;
        margin: 0;
    }
    
    .pcd-customers-table tr {
        display: block;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }
    
    .pcd-customers-table tr:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .pcd-customers-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left !important;
    }
    
    .pcd-customers-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .pcd-customers-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        font-size: clamp(11px, 1.3vw, 12px);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-right: 15px;
        min-width: 100px;
        flex-shrink: 0;
        line-height: 1.4;
    }
    
    .pcd-customers-table td:last-child::before {
        display: none;
    }
    
    .pcd-customers-table td > * {
        color: rgba(255, 255, 255, 0.95);
        font-size: clamp(14px, 1.7vw, 16px);
        word-break: break-word;
        line-height: 1.5;
    }
    
    .pcd-customers-table td a {
        color: rgba(255, 255, 255, 0.95);
        text-decoration: underline;
        text-decoration-color: rgba(255, 255, 255, 0.3);
    }
    
    .pcd-customers-table td a:hover {
        color: #8800EE;
        text-decoration-color: #8800EE;
    }
    
    .pcd-customer-actions {
        justify-content: center;
        align-items: center;
        padding-top: 15px;
        flex-direction: column;
    }
    
    .pcd-customer-actions::before {
        display: none;
    }
    
    .pcd-action-buttons {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: stretch;
    }
    
    .pcd-action-buttons button {
        flex: 1;
        min-width: 0;
        max-width: none;
        padding: clamp(10px, 2.5vw, 14px) clamp(10px, 2.5vw, 16px);
        font-size: clamp(12px, 3vw, 14px);
        font-weight: 600;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    /* Preserve button colors on mobile - View (Blue) */
    .pcd-action-buttons .pcd-btn-view,
    .pcd-action-buttons .pcd-view-order {
        background: rgba(33, 150, 243, 0.2) !important;
        color: #2196F3 !important;
        border: 1px solid rgba(33, 150, 243, 0.4) !important;
    }
    
    .pcd-action-buttons .pcd-btn-view:hover,
    .pcd-action-buttons .pcd-view-order:hover {
        background: rgba(33, 150, 243, 0.3) !important;
        border-color: rgba(33, 150, 243, 0.6) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    }
    
    /* Preserve button colors on mobile - Edit (Orange) */
    .pcd-action-buttons .pcd-btn-edit,
    .pcd-action-buttons .pcd-edit-order {
        background: rgba(255, 152, 0, 0.2) !important;
        color: #FF9800 !important;
        border: 1px solid rgba(255, 152, 0, 0.4) !important;
    }
    
    .pcd-action-buttons .pcd-btn-edit:hover,
    .pcd-action-buttons .pcd-edit-order:hover {
        background: rgba(255, 152, 0, 0.3) !important;
        border-color: rgba(255, 152, 0, 0.6) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    }
    
    /* Preserve button colors on mobile - Delete (Red) */
    .pcd-action-buttons .pcd-btn-delete,
    .pcd-action-buttons .pcd-delete-order {
        background: rgba(244, 67, 54, 0.2) !important;
        color: #f44336 !important;
        border: 1px solid rgba(244, 67, 54, 0.4) !important;
    }
    
    .pcd-action-buttons .pcd-btn-delete:hover,
    .pcd-action-buttons .pcd-delete-order:hover {
        background: rgba(244, 67, 54, 0.3) !important;
        border-color: rgba(244, 67, 54, 0.6) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
    }
    
    .pcd-orders-table tbody td {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pcd-orders-table tbody td::before {
        margin-bottom: 5px;
        margin-right: 0;
        width: 100%;
        font-size: 11px;
        padding-right: 0;
        min-width: auto;
    }
    
    .pcd-orders-table tbody td > * {
        width: 100%;
    }
    
    .pcd-filter-group {
        margin-bottom: 15px;
    }
    
    /* Modal fixes for very small mobile - Add spacing from header */
    .pcd-modal.active,
    .pcd-modal[style*="display: block"],
    .pcd-modal[style*="display:flex"] {
        padding-top: 80px !important; /* Increased spacing from header on very small mobile */
        padding-bottom: 20px !important;
    }
    
    .pcd-modal-content {
        margin-top: 50px !important;
        margin-bottom: 20px !important;
        padding-top: 50px !important;
        position: relative !important;
    }
    
    .pcd-modal.active .pcd-modal-content,
    .pcd-modal[style*="display: block"] .pcd-modal-content,
    .pcd-modal[style*="display:flex"] .pcd-modal-content {
        margin-top: 50px !important;
        margin-bottom: 20px !important;
    }
    
    .pcd-modal-content .pcd-modal-close,
    #pcd-order-modal .pcd-modal-close,
    .pcd-modal .pcd-modal-close {
        position: absolute !important;
        right: 20px !important; /* View Order - positioned to the left of scrollbar, looks good */
        top: 20px !important; /* View Order - positioned with spacing from top */
        left: auto !important; /* Force right positioning */
    }
    
    /* Edit Order Modal - Close button EXACT COPY of View Order - includes .pcd-modal-large */
    #pcd-edit-order-modal .pcd-modal-close,
    #pcd-edit-order-modal .pcd-modal-content .pcd-modal-close,
    #pcd-edit-order-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close {
        position: absolute !important;
        right: 8px !important; /* View Order - positioned over scrollbar area - scrollbar appears under the button */
        top: 20px !important; /* View Order - positioned with spacing from top */
        left: auto !important; /* Force right positioning */
        font-size: 32px !important;
        z-index: 1000002 !important; /* Higher than scrollbar to ensure close button appears above scrollbar */
        color: #ffffff !important;
        background: rgba(0, 0, 0, 0.9) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        line-height: 1 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        transform: none !important;
    }
    
    .pcd-modal-content .pcd-modal-close:hover,
    #pcd-order-modal .pcd-modal-close:hover,
    #pcd-edit-order-modal .pcd-modal-close:hover,
    .pcd-modal .pcd-modal-close:hover {
        background: rgba(136, 0, 238, 0.8) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        color: #ffffff !important;
        transform: scale(1.1) !important;
    }
    
    .pcd-modal.active,
    .pcd-modal[style*="display: block"],
    .pcd-modal[style*="display:flex"] {
        padding-top: 10px !important;
    }
}

/* Status Update Message */
.pcd-status-update-message {
    display: block;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: clamp(11px, 1.3vw, 12px);
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.pcd-status-update-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.pcd-status-update-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* FINAL OVERRIDE: Ensure ALL modal close buttons use the same global styling - Maximum Specificity */
/* This applies to ALL modals: View Order, Edit Order, Order Details, etc. */
body .pcd-modal-close,
body .pcd-modal-content .pcd-modal-close,
body .pcd-modal-large .pcd-modal-close,
body .pcd-modal-content.pcd-modal-large .pcd-modal-close,
body #pcd-order-modal .pcd-modal-close,
body #pcd-order-modal .pcd-modal-content .pcd-modal-close,
body #pcd-edit-order-modal .pcd-modal-close,
body #pcd-edit-order-modal .pcd-modal-content .pcd-modal-close,
body #pcd-edit-order-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close,
body #pcd-edit-order-modal.pcd-modal .pcd-modal-content.pcd-modal-large .pcd-modal-close,
body #pcd-order-details .pcd-modal-close {
    z-index: 1000002 !important; /* Higher than scrollbar to ensure close button appears above scrollbar */
    position: absolute !important;
    right: 8px !important; /* Positioned over scrollbar area - scrollbar appears under the button */
    top: 20px !important; /* Positioned with spacing from top */
    left: auto !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 32px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    float: none !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}
