/* Piling Machine Manager - Frontend Styles */
/* Red and White Theme */

:root {
    --pmm-primary: #DC2626;
    --pmm-primary-dark: #B91C1C;
    --pmm-primary-light: #FEE2E2;
    --pmm-secondary: #1F2937;
    --pmm-white: #FFFFFF;
    --pmm-gray-100: #F3F4F6;
    --pmm-gray-200: #E5E7EB;
    --pmm-gray-300: #D1D5DB;
    --pmm-gray-500: #6B7280;
    --pmm-gray-700: #374151;
    --pmm-success: #10B981;
    --pmm-warning: #F59E0B;
}

* {
    box-sizing: border-box;
}

/* Hide WordPress theme elements for full page dashboard */
body.pmm-dashboard-active {
    overflow: hidden;
}

body.pmm-dashboard-active #page,
body.pmm-dashboard-active .site,
body.pmm-dashboard-active .site-content,
body.pmm-dashboard-active .entry-content,
body.pmm-dashboard-active .post-content,
body.pmm-dashboard-active article,
body.pmm-dashboard-active main,
body.pmm-dashboard-active .content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.pmm-dashboard-active header,
body.pmm-dashboard-active footer,
body.pmm-dashboard-active .site-header,
body.pmm-dashboard-active .site-footer,
body.pmm-dashboard-active .entry-header,
body.pmm-dashboard-active .entry-footer,
body.pmm-dashboard-active .post-navigation,
body.pmm-dashboard-active .comments-area,
body.pmm-dashboard-active #masthead,
body.pmm-dashboard-active #colophon,
body.pmm-dashboard-active .sidebar,
body.pmm-dashboard-active #secondary,
body.pmm-dashboard-active .widget-area,
body.pmm-dashboard-active .page-header,
body.pmm-dashboard-active .entry-title,
body.pmm-dashboard-active .wp-block-post-title {
    display: none !important;
}

.pmm-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--pmm-gray-100);
}

/* IMPORTANT: Hide sections that are not active */
.pmm-section {
    display: none !important;
}

.pmm-section.active {
    display: block !important;
}

/* Sidebar */
.pmm-sidebar {
    width: 280px;
    background: var(--pmm-secondary);
    color: var(--pmm-white);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.pmm-sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pmm-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--pmm-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pmm-logo span {
    color: var(--pmm-primary);
}

.pmm-user-info {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pmm-user-avatar {
    width: 45px;
    height: 45px;
    background: var(--pmm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.pmm-user-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.pmm-user-details p {
    margin: 0;
    font-size: 12px;
    color: var(--pmm-gray-300);
}

.pmm-nav {
    padding: 20px 0;
}

.pmm-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--pmm-gray-300);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.pmm-nav-item:hover,
.pmm-nav-item.active {
    background: rgba(220, 38, 38, 0.15);
    color: var(--pmm-white);
    border-left-color: var(--pmm-primary);
}

.pmm-nav-item.active {
    background: rgba(220, 38, 38, 0.25);
}

.pmm-nav-item svg {
    width: 20px;
    height: 20px;
}

.pmm-nav-item.logout {
    margin-top: 20px;
    color: var(--pmm-primary);
}

.pmm-nav-item.logout:hover {
    background: rgba(220, 38, 38, 0.2);
}

/* Main Content */
.pmm-main-content {
    flex: 1;
    margin-left: 280px;
    background: var(--pmm-gray-100);
    min-height: 100vh;
}

.pmm-header {
    background: var(--pmm-white);
    padding: 20px 30px;
    border-bottom: 1px solid var(--pmm-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pmm-header h1 {
    margin: 0;
    font-size: 24px;
    color: var(--pmm-secondary);
}

.pmm-breadcrumb {
    color: var(--pmm-gray-500);
    font-size: 14px;
}

.pmm-breadcrumb span {
    color: var(--pmm-primary);
}

.pmm-content {
    padding: 30px;
}

/* Cards */
.pmm-card {
    background: var(--pmm-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.pmm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pmm-gray-200);
}

.pmm-card-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--pmm-secondary);
}

/* Buttons */
.pmm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.pmm-btn-primary {
    background: var(--pmm-primary);
    color: var(--pmm-white);
}

.pmm-btn-primary:hover {
    background: var(--pmm-primary-dark);
}

.pmm-btn-secondary {
    background: var(--pmm-gray-200);
    color: var(--pmm-secondary);
}

.pmm-btn-secondary:hover {
    background: var(--pmm-gray-300);
}

.pmm-btn-outline {
    background: transparent;
    border: 2px solid var(--pmm-primary);
    color: var(--pmm-primary);
}

.pmm-btn-outline:hover {
    background: var(--pmm-primary);
    color: var(--pmm-white);
}

.pmm-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.pmm-btn-danger {
    background: #DC2626;
    color: white;
}

.pmm-btn-danger:hover {
    background: #B91C1C;
}

/* Forms */
.pmm-form-group {
    margin-bottom: 20px;
}

.pmm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--pmm-secondary);
    font-size: 14px;
}

.pmm-form-group label span.required {
    color: var(--pmm-primary);
}

.pmm-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--pmm-gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.pmm-form-control:focus {
    outline: none;
    border-color: var(--pmm-primary);
    box-shadow: 0 0 0 3px var(--pmm-primary-light);
}

.pmm-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pmm-form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* File Upload */
.pmm-file-upload {
    border: 2px dashed var(--pmm-gray-300);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pmm-file-upload:hover {
    border-color: var(--pmm-primary);
    background: var(--pmm-primary-light);
}

.pmm-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.pmm-file-upload-icon {
    font-size: 40px;
    color: var(--pmm-gray-500);
    margin-bottom: 10px;
    pointer-events: none;
}

.pmm-file-upload p {
    margin: 0;
    color: var(--pmm-gray-500);
    pointer-events: none;
}

.pmm-file-upload .pmm-file-name {
    margin-top: 10px;
    color: var(--pmm-primary);
    font-weight: 500;
    pointer-events: none;
}

/* Tables */
.pmm-table-wrapper {
    overflow-x: auto;
}

.pmm-table {
    width: 100%;
    border-collapse: collapse;
}

.pmm-table th,
.pmm-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--pmm-gray-200);
}

.pmm-table th {
    background: var(--pmm-gray-100);
    font-weight: 600;
    color: var(--pmm-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pmm-table td {
    font-size: 14px;
    color: var(--pmm-gray-700);
}

.pmm-table tbody tr:hover {
    background: var(--pmm-gray-100);
}

.pmm-table .pmm-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.pmm-status.pending {
    background: #FEF3C7;
    color: #92400E;
}

.pmm-status.active {
    background: #D1FAE5;
    color: #065F46;
}

.pmm-status.proposal_sent {
    background: #DBEAFE;
    color: #1E40AF;
}

.pmm-status.accepted {
    background: #D1FAE5;
    color: #065F46;
}

.pmm-status.rejected {
    background: #FEE2E2;
    color: #991B1B;
}

.pmm-btn-success {
    background: #10B981;
    color: white;
}

.pmm-btn-success:hover {
    background: #059669;
}

/* Tabs */
.pmm-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--pmm-gray-200);
    margin-bottom: 25px;
}

.pmm-tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--pmm-gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.pmm-tab:hover {
    color: var(--pmm-primary);
}

.pmm-tab.active {
    color: var(--pmm-primary);
    border-bottom-color: var(--pmm-primary);
}

.pmm-tab-content {
    display: none;
}

.pmm-tab-content.active {
    display: block;
}

/* Enquiry Detail Card */
.pmm-enquiry-detail {
    background: var(--pmm-gray-100);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.pmm-enquiry-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.pmm-detail-item {
    background: var(--pmm-white);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--pmm-primary);
}

.pmm-detail-item label {
    display: block;
    font-size: 12px;
    color: var(--pmm-gray-500);
    margin-bottom: 5px;
}

.pmm-detail-item span {
    font-size: 16px;
    font-weight: 600;
    color: var(--pmm-secondary);
}

/* Modal */
.pmm-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pmm-modal-overlay.active {
    display: flex !important;
}

.pmm-modal-overlay > .pmm-modal {
    position: relative !important;
    background: var(--pmm-white) !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 700px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: auto !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.pmm-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--pmm-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pmm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--pmm-secondary);
}

.pmm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--pmm-gray-500);
}

.pmm-modal-body {
    padding: 25px;
}

.pmm-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--pmm-gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Messages */
.pmm-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pmm-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.pmm-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #DC2626;
}

/* Empty State */
.pmm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--pmm-gray-500);
}

.pmm-empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.pmm-empty-state h3 {
    margin: 0 0 10px 0;
    color: var(--pmm-secondary);
}

/* Login Page */
.pmm-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pmm-secondary) 0%, #374151 100%);
    padding: 20px;
}

.pmm-login-box {
    background: var(--pmm-white);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pmm-login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.pmm-login-logo h1 {
    font-size: 28px;
    margin: 0;
    color: var(--pmm-secondary);
}

.pmm-login-logo h1 span {
    color: var(--pmm-primary);
}

.pmm-login-box h2 {
    text-align: center;
    margin: 0 0 25px 0;
    color: var(--pmm-secondary);
    font-size: 20px;
}

.pmm-login-box .pmm-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
}

.pmm-login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--pmm-gray-200);
}

.pmm-login-footer p {
    margin: 0;
    color: var(--pmm-gray-500);
}

.pmm-login-footer a {
    color: var(--pmm-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Actions */
.pmm-actions {
    display: flex;
    gap: 8px;
}

/* Loading */
.pmm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--pmm-gray-300);
    border-top-color: var(--pmm-primary);
    border-radius: 50%;
    animation: pmm-spin 0.8s linear infinite;
}

@keyframes pmm-spin {
    to { transform: rotate(360deg); }
}

/* Document Link */
.pmm-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pmm-primary);
    text-decoration: none;
    font-size: 13px;
}

.pmm-doc-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .pmm-form-row,
    .pmm-form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .pmm-enquiry-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pmm-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .pmm-main-content {
        margin-left: 0;
    }
    
    .pmm-dashboard-wrapper {
        flex-direction: column;
    }
    
    .pmm-enquiry-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .pmm-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .pmm-nav-item {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .pmm-nav-item:hover,
    .pmm-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--pmm-primary);
    }
}

/* Badge */
.pmm-badge {
    background: var(--pmm-primary);
    color: var(--pmm-white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: auto;
}

/* Notifications */
.pmm-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pmm-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--pmm-white);
    border-radius: 8px;
    border: 1px solid var(--pmm-gray-200);
    transition: all 0.2s ease;
}

.pmm-notification-item.unread {
    background: var(--pmm-primary-light);
    border-color: var(--pmm-primary);
}

.pmm-notification-icon {
    width: 40px;
    height: 40px;
    background: var(--pmm-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pmm-notification-item.unread .pmm-notification-icon {
    background: var(--pmm-primary);
}

.pmm-notification-content {
    flex: 1;
}

.pmm-notification-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--pmm-secondary);
}

.pmm-notification-content p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--pmm-gray-700);
    line-height: 1.4;
}

.pmm-notification-time {
    font-size: 11px;
    color: var(--pmm-gray-500);
}

.pmm-notification-mark-read {
    background: var(--pmm-success);
    color: var(--pmm-white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pmm-notification-mark-read:hover {
    background: #059669;
}


/* ===== PMM Fullscreen Dashboard Fix (v2) ===== */
html, body {
    height: 100%;
}

body.pmm-dashboard-active {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Remove common theme wrappers spacing/max-width */
body.pmm-dashboard-active #page,
body.pmm-dashboard-active .site,
body.pmm-dashboard-active .site-content,
body.pmm-dashboard-active .content-area,
body.pmm-dashboard-active .content-area > *,
body.pmm-dashboard-active .entry-content,
body.pmm-dashboard-active .container,
body.pmm-dashboard-active .wrap,
body.pmm-dashboard-active .elementor,
body.pmm-dashboard-active .elementor-section,
body.pmm-dashboard-active .elementor-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide theme header/footer (keep WP admin bar) */
body.pmm-dashboard-active header,
body.pmm-dashboard-active footer,
body.pmm-dashboard-active .site-header,
body.pmm-dashboard-active .site-footer {
    display: none !important;
}

/* Force dashboard to cover the whole viewport */
body.pmm-dashboard-active .pmm-dashboard-wrapper {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 9999 !important;
}
/* ===== End Fullscreen Fix (v2) ===== */

/* ===== Admin Frontend Dashboard Styles ===== */

.pmm-admin-badge {
    background: var(--pmm-primary);
    color: var(--pmm-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: 10px;
}

.pmm-user-avatar.admin {
    background: var(--pmm-primary);
}

/* Stats Row */
.pmm-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.pmm-stat-card {
    background: var(--pmm-white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pmm-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.pmm-stat-icon.machines { background: #DBEAFE; }
.pmm-stat-icon.enquiries { background: #FEF3C7; }
.pmm-stat-icon.proposals { background: #D1FAE5; }
.pmm-stat-icon.users { background: #F3E8FF; }

.pmm-stat-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--pmm-secondary);
}

.pmm-stat-info p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: var(--pmm-gray-500);
}

/* User Cell in Tables */
.pmm-user-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pmm-user-cell small {
    color: var(--pmm-gray-500);
    font-size: 12px;
}

.pmm-user-cell .pmm-user-avatar-sm {
    width: 35px;
    height: 35px;
    background: var(--pmm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pmm-white);
    font-weight: 600;
    font-size: 14px;
    margin-right: 10px;
}

.pmm-user-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.pmm-user-cell > div {
    display: flex;
    flex-direction: column;
}

/* Proposal Card */
.pmm-proposal-card {
    background: var(--pmm-white);
    border: 1px solid var(--pmm-gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.pmm-proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pmm-gray-200);
}

.pmm-proposal-header h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--pmm-secondary);
}

.pmm-proposal-header p {
    margin: 0;
    font-size: 13px;
    color: var(--pmm-gray-500);
}

.pmm-proposal-details {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.pmm-proposal-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pmm-proposal-item label {
    font-size: 11px;
    color: var(--pmm-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pmm-proposal-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--pmm-secondary);
}

.pmm-proposal-item span.pmm-highlight {
    color: var(--pmm-primary);
    font-size: 18px;
}

.pmm-proposal-message {
    background: var(--pmm-gray-100);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.pmm-proposal-message label {
    font-size: 12px;
    color: var(--pmm-gray-500);
    display: block;
    margin-bottom: 5px;
}

.pmm-proposal-message p {
    margin: 0;
    font-size: 14px;
    color: var(--pmm-gray-700);
}

.pmm-proposal-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--pmm-gray-200);
}

/* Form Row 3 columns */
.pmm-form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Responsive for Admin Dashboard */
@media (max-width: 1200px) {
    .pmm-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pmm-proposal-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pmm-stats-row {
        grid-template-columns: 1fr;
    }
    
    .pmm-proposal-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pmm-form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* User Cards Grid for Admin */
.pmm-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pmm-user-card {
    background: var(--pmm-white);
    border: 1px solid var(--pmm-gray-200);
    border-radius: 12px;
    padding: 20px;
}

.pmm-user-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pmm-gray-200);
}

.pmm-user-card-avatar {
    width: 50px;
    height: 50px;
    background: var(--pmm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pmm-white);
    font-weight: 600;
    font-size: 20px;
    background-size: cover;
    background-position: center;
}

.pmm-user-card-info h4 {
    margin: 0 0 3px 0;
    font-size: 16px;
    color: var(--pmm-secondary);
}

.pmm-user-card-info p {
    margin: 0;
    font-size: 13px;
    color: var(--pmm-gray-500);
}

.pmm-user-card-details {
    margin-bottom: 15px;
}

.pmm-user-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--pmm-gray-700);
    margin-bottom: 8px;
}

.pmm-user-detail span:first-child {
    font-size: 14px;
}

.pmm-user-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid var(--pmm-gray-200);
    border-bottom: 1px solid var(--pmm-gray-200);
}

.pmm-user-card-stats > div {
    text-align: center;
}

.pmm-user-card-stats strong {
    display: block;
    font-size: 20px;
    color: var(--pmm-primary);
}

.pmm-user-card-stats span {
    font-size: 11px;
    color: var(--pmm-gray-500);
    text-transform: uppercase;
}

/* Profile Edit Section */
.pmm-profile-edit {
    max-width: 700px;
}

.pmm-profile-photo-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--pmm-gray-200);
}

.pmm-profile-photo-preview {
    width: 100px;
    height: 100px;
    background: var(--pmm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pmm-white);
    font-size: 36px;
    font-weight: 600;
    background-size: cover;
    background-position: center;
}

.pmm-profile-photo-upload p {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: var(--pmm-gray-500);
}

.pmm-password-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--pmm-gray-200);
}

.pmm-password-section h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: var(--pmm-secondary);
}

.pmm-password-wrapper {
    position: relative;
}

.pmm-password-wrapper input {
    padding-right: 45px;
}

.pmm-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pmm-gray-500);
    padding: 5px;
    font-size: 16px;
}

.pmm-toggle-password:hover {
    color: var(--pmm-primary);
}

/* Enquiry Cards */
.pmm-enquiries-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pmm-enquiry-card {
    background: var(--pmm-white);
    border: 1px solid var(--pmm-gray-200);
    border-radius: 10px;
    padding: 15px 20px;
    transition: all 0.2s ease;
}

.pmm-enquiry-card:hover {
    border-color: var(--pmm-primary);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.pmm-enquiry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pmm-enquiry-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pmm-enquiry-no {
    font-size: 12px;
    color: var(--pmm-gray-500);
    background: var(--pmm-gray-100);
    padding: 3px 8px;
    border-radius: 4px;
}

.pmm-enquiry-project {
    font-size: 16px;
    font-weight: 600;
    color: var(--pmm-secondary);
    text-decoration: none;
    cursor: pointer;
}

.pmm-enquiry-project:hover {
    color: var(--pmm-primary);
}

.pmm-enquiry-card-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--pmm-gray-500);
}

/* Enquiry Detail Page */
.pmm-enquiry-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.pmm-enquiry-detail-item {
    background: var(--pmm-gray-100);
    padding: 15px;
    border-radius: 8px;
}

.pmm-enquiry-detail-item label {
    display: block;
    font-size: 11px;
    color: var(--pmm-gray-500);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.pmm-enquiry-detail-item span {
    font-size: 15px;
    font-weight: 600;
    color: var(--pmm-secondary);
}

.pmm-enquiry-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pmm-gray-200);
}

.pmm-job-details-section {
    background: var(--pmm-gray-100);
    padding: 20px;
    border-radius: 10px;
}

.pmm-job-details-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--pmm-secondary);
}

.pmm-job-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.pmm-job-detail-item {
    background: var(--pmm-white);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.pmm-job-detail-item label {
    display: block;
    font-size: 11px;
    color: var(--pmm-gray-500);
    margin-bottom: 5px;
}

.pmm-job-detail-item span {
    font-size: 18px;
    font-weight: 700;
    color: var(--pmm-primary);
}

@media (max-width: 768px) {
    .pmm-enquiry-detail-grid,
    .pmm-job-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pmm-profile-photo-section {
        flex-direction: column;
        text-align: center;
    }
}


/* ===== PMM Admin Send Enquiry Scroll Fix ===== */
.pmm-dashboard-wrapper {
    overflow: hidden;
}
.pmm-main-content {
    height: 100vh;
    overflow-y: auto;
}
/* ===== End Scroll Fix ===== */

/* ===== My Proposals Section Styles ===== */
.pmm-proposals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pmm-proposal-card-user {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.pmm-proposal-card-user:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pmm-proposal-header-user {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.pmm-proposal-header-user h3 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.pmm-proposal-body-user {
    padding: 0;
}

.pmm-proposal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.pmm-proposal-item-user {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pmm-proposal-item-user label {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 500;
}

.pmm-proposal-item-user span {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.pmm-proposal-item-user span.pmm-highlight {
    color: #059669;
    font-weight: 600;
}

.pmm-proposal-message-user {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.pmm-proposal-message-user label {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.pmm-proposal-message-user p {
    margin: 0;
    font-size: 14px;
    color: #374151;
}

@media (max-width: 768px) {
    .pmm-proposal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pmm-proposal-header-user {
        flex-direction: column;
        gap: 10px;
    }
}
/* ===== End My Proposals Styles ===== */

/* ===== New Modal Styles (for rejection and revised proposal modals) ===== */
#pmm-rejection-modal,
#pmm-revised-proposal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pmm-rejection-modal .pmm-modal-overlay,
#pmm-revised-proposal-modal .pmm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

#pmm-rejection-modal .pmm-modal-content,
#pmm-revised-proposal-modal .pmm-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

#pmm-rejection-modal .pmm-modal-content {
    max-width: 500px;
}

#pmm-revised-proposal-modal .pmm-modal-content {
    max-width: 600px;
}

#pmm-rejection-modal .pmm-modal-header,
#pmm-revised-proposal-modal .pmm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

#pmm-rejection-modal .pmm-modal-header h3,
#pmm-revised-proposal-modal .pmm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

#pmm-rejection-modal .pmm-modal-close,
#pmm-revised-proposal-modal .pmm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#pmm-rejection-modal .pmm-modal-close:hover,
#pmm-revised-proposal-modal .pmm-modal-close:hover {
    color: #1f2937;
}

#pmm-rejection-modal .pmm-modal-body,
#pmm-revised-proposal-modal .pmm-modal-body {
    padding: 20px;
}

#pmm-rejection-modal .pmm-modal-footer,
#pmm-revised-proposal-modal .pmm-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    #pmm-rejection-modal .pmm-modal-content,
    #pmm-revised-proposal-modal .pmm-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
}
/* ===== End New Modal Styles ===== */


