/* 
Theme Name: Design Hub
Theme URI: https://github.com/elementor/hello-theme/
Description: Design Hub is a property and space management theme for design projects, built on Hello Elementor
Author: Butterfield Bathrooms
Author URI: https://butterfieldbathrooms.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: design-hub
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: properties, spaces, design, project-management, bathrooms, renovation
*/

/*
    Global Design Hub Styles
*/

/* Dashboard Layout */
.design-hub-dashboard {
    display: flex;
    min-height: 100vh;
    background: #e3efed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
}

/* Sidebar Styles */
.dashboard-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e1e7e7;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid #e1e7e7;
}

.logo h2 {
    margin: 0;
    font-size: 24px;
    color: #2c5f5a;
    font-weight: 700;
}

.brand-accent {
    color: #69b0a3; /* Butterfield teal */
    font-weight: 600;
    font-size: 14px;
}

.dashboard-nav {
    padding: 24px 0;
}

.nav-section {
    margin-top: 32px;
}

.nav-section h4 {
    padding: 0 24px;
    margin: 0 0 12px;
    color: #5a6c6b;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-item {
    list-style: none;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #2d3131;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    font-weight: 500;
}

.nav-item.active a,
.nav-item a:hover {
    background: #f0f8f7;
    color: #1a4c47;
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #69b0a3;
}

.nav-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.badge {
    background: #e53e3e;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 18px;
    text-align: center;
}



.user-profile {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fefe;
    border: 1px solid #e1e7e7;
    border-radius: 12px;
}

.user-avatar {
    margin-right: 12px;
}

.user-avatar img {
    border-radius: 50%;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.logout-link {
    color: #5a6c6b;
    font-size: 12px;
    text-decoration: none;
}

.logout-link:hover {
    color: #69b0a3;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    background: #e3efed;
}

/* Global Button Styles */
/* Ensure ALL buttons get consistent styling */
button,
input[type="submit"],
input[type="button"],
.btn, 
button.btn,
a.btn,
input[type="submit"].btn,
input[type="button"].btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    box-sizing: border-box;
    min-height: 44px;
    justify-content: center;
    font-family: inherit;
    /* Default styling for buttons without specific classes */
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

/* Default button hover (for buttons without specific classes) */
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Primary Button */
.btn-primary,
button.btn-primary,
a.btn-primary,
input[type="submit"].btn-primary {
    background: #69b0a3;
    color: white;
    border: 1px solid #69b0a3;
    font-weight: 600;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover,
input[type="submit"].btn-primary:hover {
    background: #5a9b8e;
    border-color: #5a9b8e;
    color: white;
    text-decoration: none;
}

/* Secondary Button */
.btn-secondary,
button.btn-secondary,
a.btn-secondary,
input[type="button"].btn-secondary {
    background: #f8fefe;
    color: #2d3131;
    border: 1px solid #d1d9d9;
}

.btn-secondary:hover,
button.btn-secondary:hover,
a.btn-secondary:hover,
input[type="button"].btn-secondary:hover {
    background: #f0f8f7;
    border-color: #a9c4bf;
    color: #1a4c47;
    text-decoration: none;
}

/* Small Button */
.btn-sm,
button.btn-sm,
a.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    min-height: 36px;
}

/* Button Icon */
.btn-icon {
    font-size: 14px;
}

.btn-sm .btn-icon {
    font-size: 12px;
}

/* Button States */
.btn:disabled,
button.btn:disabled,
input.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background: #e8efef !important;
    color: #94a3b8 !important;
    border-color: #d1d9d9 !important;
}

/* Input Placeholder and Focus States */
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #94a3b8;
    opacity: 1;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: #a9c4bf;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #69b0a3;
    box-shadow: 0 0 0 3px rgba(105, 176, 163, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e3efed;
}

::-webkit-scrollbar-thumb {
    background: #d1d9d9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a9c4bf;
}

/* Specific button types */
.btn-add {
    background: #69b0a3 !important;
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #69b0a3 !important;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-add:hover {
    background: #5a9b8e !important;
    border-color: #5a9b8e !important;
    color: white !important;
    text-decoration: none !important;
}

/* Action buttons in cards */
.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
    padding: 0;
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* View toggle buttons */
.view-btn {
    padding: 12px;
    border: 1px solid #d1d9d9;
    background: white;
    color: #4a5a59;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.view-btn.active,
.view-btn:hover {
    background: #69b0a3;
    color: white;
    border-color: #69b0a3;
}

/* Modal close button */
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #374151;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #1a202c;
}

/* Button spacing in action containers */
.property-actions .btn,
.space-actions .btn,
.header-actions .btn {
    margin-left: 12px;
}

.property-actions .btn:first-child,
.space-actions .btn:first-child,
.header-actions .btn:first-child {
    margin-left: 0;
}

/* Form buttons */
form .btn,
form button[type="submit"],
form input[type="submit"] {
    margin-top: 16px;
}

/* Button loading state */
.btn-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btn-spin 1s ease-in-out infinite;
}

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

/* Button groups */
.btn-group {
    display: flex;
    gap: 8px;
}

.btn-group .btn {
    margin: 0;
}

/*
====================
MY DESIGNS PAGE STYLES
====================
*/

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e1e7e7;
}

.header-content h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

.page-subtitle {
    color: #4a5a59;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Controls */
.designs-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e7e7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.search-filters {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 12px 16px 12px 40px;
    border: 1px solid #d1d9d9;
    border-radius: 8px;
    font-size: 14px;
    min-width: 250px;
    background: white;
    color: #1a1a1a;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5a6c6b;
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid #d1d9d9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #1a1a1a;
    min-width: 140px;
}

.view-options {
    display: flex;
    gap: 4px;
}

/* Designs Grid */
.designs-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e7e7;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 24px;
}

.design-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e7e7;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.design-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(105, 176, 163, 0.15);
    border-color: #69b0a3;
}

.design-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.design-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-placeholder .placeholder-icon {
    font-size: 48px;
    opacity: 0.6;
}

.design-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
}

.design-status {
    background: rgba(255,255,255,0.9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Design Status Color Styles */
.status-not-started { background: #fef3c7; color: #92400e; }
.status-concept { background: #dbeafe; color: #1e40af; }
.status-development { background: #fce7f3; color: #be185d; }
.status-final { background: #d1fae5; color: #065f46; }
.status-review { background: #fed7aa; color: #9a3412; }
.status-approved { background: #dcfce7; color: #166534; }
.status-progress { background: #ddd6fe; color: #6b21a8; }
.status-completed { background: #d1fae5; color: #065f46; }

.design-actions {
    display: flex;
    gap: 8px;
}

.design-content {
    padding: 20px;
}

.design-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.design-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.space-type-badge {
    background: #f0f8f7;
    color: #2c5f5a;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.design-details {
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #2d3131;
}

.detail-icon {
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.detail-text {
    flex: 1;
}

.design-meta {
    padding-top: 16px;
    border-top: 1px solid #e8efef;
    font-size: 12px;
    color: #5a6c6b;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e7e7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.empty-state p {
    font-size: 16px;
    color: #4a5a59;
    margin: 0 0 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hide cards when filtering */
.design-card.hidden {
    display: none;
}

/*
====================
SINGLE DESIGN PAGE STYLES
====================
*/

/* Design Header */
.design-header {
    margin-bottom: 32px;
}

.breadcrumb {
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #5a6c6b;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #69b0a3;
}

.property-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.title-content h1 {
    margin: 0 0 12px;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

.property-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.property-actions {
    display: flex;
    gap: 12px;
}

/* Property Overview */
.property-overview {
    margin-bottom: 48px;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.property-gallery {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e1e7e7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.main-image {
    height: 400px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #ffffff;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #69b0a3;
}

.property-placeholder-large {
    height: 400px;
    background: #e3efed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid #e1e7e7;
}

.property-placeholder-large .placeholder-icon {
    font-size: 64px;
    color: #a9c4bf;
    margin-bottom: 16px;
}

/* Details and Progress Cards */
.details-card,
.progress-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e1e7e7;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.details-card h3,
.progress-card h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.details-card .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e8efef;
}

.details-card .detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #5a6c6b;
    min-width: 120px;
}

.detail-value {
    color: #1a1a1a;
    text-align: right;
    flex: 1;
    font-weight: 500;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.progress-stat {
    text-align: center;
    padding: 16px;
    background: white;
    border: 1px solid #e1e7e7;
    border-radius: 12px;
}

.progress-stat .stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.progress-stat .stat-label {
    font-size: 12px;
    color: #5a6c6b;
    text-transform: uppercase;
    font-weight: 600;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #e8efef;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #69b0a3, #7bc4b7);
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #69b0a3;
    min-width: 80px;
}

/* Description */
.property-description {
    margin-bottom: 48px;
}

.description-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e1e7e7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.description-card h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.description-content {
    color: #2d3131;
    line-height: 1.6;
    font-weight: 400;
}

/* Spaces Section */
.spaces-section {
    margin-bottom: 48px;
}

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

.section-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.space-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e1e7e7;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.space-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(105, 176, 163, 0.15);
    border-color: #69b0a3;
}

.space-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.space-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.space-placeholder {
    width: 100%;
    height: 100%;
    background: #e3efed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.space-type-icon {
    font-size: 48px;
}

.space-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.space-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.message-indicator {
    background: #e53e3e;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.space-content {
    padding: 20px;
}

.space-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.space-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.space-type {
    background: #f0f8f7;
    color: #2c5f5a;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.space-dimensions,
.space-budget {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #2d3131;
}

.space-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8efef;
}

.last-message {
    font-size: 12px;
    color: #5a6c6b;
}

.view-space {
    font-size: 14px;
    color: #69b0a3;
    font-weight: 600;
}

/* Images Section for Single Design */
.images-section {
    margin-bottom: 48px;
}

.images-grid {
    display: grid;
    gap: 32px;
}

.image-category {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.image-category h3 {
    margin: 0;
    padding: 20px 24px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    background: rgba(0,0,0,0.7);
}

/* Messages Section for Single Design */
.messages-section {
    margin-bottom: 48px;
}

.messages-list {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.message-item {
    padding: 24px;
    border-bottom: 1px solid #f7fafc;
}

.message-item:last-child {
    border-bottom: none;
}

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

.message-author {
    font-weight: 600;
    color: #1a202c;
}

.message-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.message-type {
    background: #f0f8f7;
    color: #69b0a3;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.message-date {
    font-size: 12px;
    color: #374151;
}

.message-content {
    color: #1f2937;
    line-height: 1.6;
}

.message-content p {
    margin: 0 0 12px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

/* Status Info */
.status-info .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f7fafc;
}

.status-info .detail-item:last-child {
    border-bottom: none;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .property-title-section {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        margin-left: 0;
        padding: 16px;
    }
    
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .btn {
        padding: 12px 20px;
        min-width: 120px;
    }
    
    .btn-sm {
        padding: 8px 12px;
        min-width: 80px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .designs-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box input {
        min-width: auto;
        width: 100%;
    }
    
    .designs-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
    
    .view-options {
        align-self: center;
    }
    
    .spaces-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        padding: 16px;
        gap: 12px;
    }
    
    .messages-section .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* ================================
   USER MANAGEMENT STYLES
   ================================ */

/* Users Stats Grid - Better spacing */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.stat-card .stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Users Grid - Modern Card Layout */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

/* User Card */
.user-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* User Card Header */
.user-card-header {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 24px;
    text-align: center;
}

.user-avatar-large {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.user-avatar-large img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.user-status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.user-status-indicator.status-active {
    background: #10b981;
}

.user-status-indicator.status-inactive {
    background: #ef4444;
}

/* User Overlay */
.user-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.user-card:hover .user-overlay {
    opacity: 1;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.user-role-badge.role-administrator {
    background: rgba(254, 243, 199, 0.95);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.user-role-badge.role-editor {
    background: rgba(219, 234, 254, 0.95);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.user-role-badge.role-subscriber {
    background: rgba(209, 250, 229, 0.95);
    color: #065f46;
    border: 1px solid #10b981;
}

.user-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn.btn-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn span {
    font-size: 18px;
}

/* User Card Content */
.user-card-content {
    padding: 24px;
}

.user-card-main {
    text-align: center;
    margin-bottom: 20px;
}

.user-display-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.user-username {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.user-email {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.email-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.email-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    word-break: break-all;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.user-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.user-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.user-stat .stat-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.user-stat .stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-stat .stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-stat .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.user-stat .stat-value.text-success {
    color: #059669;
}

.user-stat .stat-value.text-inactive {
    color: #dc2626;
}

.user-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
}

.user-joined {
    color: #64748b;
    font-weight: 500;
}

.user-id {
    color: #94a3b8;
    font-weight: 500;
    font-family: monospace;
}


/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 12px 16px 12px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    width: 300px;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-box input:focus {
    outline: none;
    border-color: #69b0a3;
    box-shadow: 0 0 0 3px rgba(105, 176, 163, 0.1);
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 16px;
    pointer-events: none;
}

/* User Modal Specific Styles */
.modal .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal .form-group.full-width {
    grid-column: 1 / -1;
}

.modal .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
}

.modal .checkbox-label input[type="checkbox"] {
    margin: 0;
}

.modal .checkmark {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #69b0a3;
    border-color: #69b0a3;
}

.modal .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive Design for Users Page */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .search-box input {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .stat-number {
        font-size: 28px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        margin-bottom: 20px;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    .search-box input {
        width: 100%;
        max-width: 300px;
    }
    
    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
    
    .user-card-header {
        padding: 20px;
    }
    
    .user-avatar-large img {
        width: 70px;
        height: 70px;
    }
    
    .user-status-indicator {
        width: 18px;
        height: 18px;
        bottom: 6px;
        right: 6px;
    }
    
    .user-card-content {
        padding: 20px;
    }
    
    .user-display-name {
        font-size: 18px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
    
    .action-btn span {
        font-size: 16px;
    }
    
    .modal .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .user-card-header {
        padding: 16px;
    }
    
    .user-avatar-large img {
        width: 60px;
        height: 60px;
    }
    
    .user-status-indicator {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    
    .user-card-content {
        padding: 16px;
    }
    
    .user-display-name {
        font-size: 16px;
    }
    
    .user-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .user-stat {
        padding: 10px;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
    }
    
    .action-btn span {
        font-size: 14px;
    }
    
    .user-card-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        font-size: 12px;
    }
}

/* Users Table */
.users-table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e7e7;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Base Modal Styles (shared) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.show { display: flex; }

.modal-container {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 1px solid #e1e7e7;
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8efef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body { padding: 20px; background: #ffffff; }
.modal-footer { padding: 16px 20px; border-top: 1px solid #e8efef; display: flex; justify-content: flex-end; gap: 12px; }

.users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.users-table thead th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5a6c6b;
    background: #f7faf9;
    padding: 14px 16px;
    border-bottom: 1px solid #e8efef;
}

.users-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1a1a1a;
}

.users-table tbody tr:hover {
    background: #f8fefe;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.table-user-meta .name {
    font-weight: 600;
    color: #1e293b;
}

.table-user-meta .sub {
    font-size: 12px;
    color: #64748b;
}

.role-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.role-badge.role-administrator { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.role-badge.role-editor { background: #dbeafe; color: #1e40af; border-color: #3b82f6; }
.role-badge.role-subscriber { background: #d1fae5; color: #065f46; border-color: #10b981; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge.status-active { background: #dcfce7; color: #065f46; }
.status-badge.status-inactive { background: #fee2e2; color: #991b1b; }

/* Ensure WP default table styles do not bleed into our users table */
.dashboard-main .users-table { margin: 0; border: 0; background: transparent; }
.dashboard-main .users-table > thead > tr > th,
.dashboard-main .users-table > tbody > tr > td { border: 0; background: transparent; }
.dashboard-main .users-table > thead > tr > th { background: #f7faf9; border-bottom: 1px solid #e8efef; }
.dashboard-main .users-table > tbody > tr > td { border-bottom: 1px solid #f1f5f9; }
.dashboard-main .users-table > tbody > tr:nth-child(even) { background: transparent; }
.dashboard-main .users-table th:last-child, 
.dashboard-main .users-table td:last-child { text-align: right; }

/* Override Hello Elementor visited/focus/active states on action buttons inside users table */
.users-table .user-actions .action-btn,
.users-table .user-actions a.action-btn,
.users-table .user-actions .action-btn:visited,
.users-table .user-actions a.action-btn:visited {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    -webkit-tap-highlight-color: transparent;
}

.users-table .user-actions .action-btn:focus,
.users-table .user-actions .action-btn:focus-visible,
.users-table .user-actions a.action-btn:focus,
.users-table .user-actions a.action-btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(105, 176, 163, 0.35) !important;
    background: #ffffff !important;
}

.users-table .user-actions .action-btn:active,
.users-table .user-actions a.action-btn:active {
    background: #f0f8f7 !important;
    transform: scale(1.03);
}

.users-table .user-actions .action-btn.btn-danger:focus,
.users-table .user-actions .action-btn.btn-danger:focus-visible,
.users-table .user-actions a.action-btn.btn-danger:focus,
.users-table .user-actions a.action-btn.btn-danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

@media (max-width: 768px) {
    .users-table thead { display: none; }
    .users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; }
    .users-table tr { border-bottom: 1px solid #f1f5f9; }
    .users-table tbody td { padding: 12px 16px; }
}

/* Inline notice */
.dh-inline-notice {
    margin: 0 0 16px 0;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
}

/* Notifications grid */
.notifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.notification-card {
    display: block;
    background: white;
    border: 1px solid #e1e7e7;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(105,176,163,0.14);
    border-color: #69b0a3;
}

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

.notification-title {
    font-weight: 700;
    color: #1a1a1a;
}

.notification-count {
    background: #f0f8f7;
    color: #2c5f5a;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #a9c4bf;
}

.notification-body {
    color: #2d3131;
    margin-bottom: 8px;
}

.notification-meta {
    color: #5a6c6b;
    font-size: 12px;
}
/* Message composer */
.message-composer {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.message-composer textarea {
    width: 100%;
    border: 1px solid #d1d9d9;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    resize: vertical;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.message-composer .composer-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 12px;
}

.message-composer textarea:focus {
    outline: none;
    border-color: #69b0a3;
    box-shadow: 0 0 0 3px rgba(105, 176, 163, 0.1);
    background: #ffffff;
}
