/* Member Area Styles */

/* Common Form Styles */
.pillar-login-form,
.pillar-register-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
}

.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    color: #2271b1;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Base form submit styles */
.form-submit {
    margin-top: 30px;
    text-align: center;
}

.form-submit .button {
    padding: 0.75rem 1.5rem;  /* Reasonable default padding */
    min-width: auto;  /* Remove fixed width */
}

.form-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.form-links a {
    color: #2271b1;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
    color: #ddd;
}

/* Status Messages */
.status-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    position: relative;
}

.status-message.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.status-message.success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.close-message {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    color: inherit;
}

.close-message:hover {
    opacity: 0.7;
}

/* Member Dashboard Styles */
.pillar-member-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    position: relative;
}

.refresh-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #64748b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.refresh-button:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.refresh-button.spinning .dashicons {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.profile-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

.profile-name {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 500;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.user-name {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 500;
}

.user-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px 0;
    display: none;
}

.profile-dropdown.active {
    display: block;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.records-tabs {
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.tab-button.active {
    border-bottom-color: #2271b1;
    color: #2271b1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pillar-login-form,
    .pillar-register-form {
        margin: 20px;
        padding: 15px;
    }

    .form-container {
        padding: 20px;
    }

    .quick-actions {
        flex-direction: column;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }
} 

/* Add these styles */
.pillar-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Theme compatibility */
.pillar-page-container .pillar-login-form,
.pillar-page-container .pillar-register-form,
.pillar-page-container .pillar-reset-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Add responsive container */
@media (max-width: 768px) {
    .pillar-page-container {
        margin: 20px auto;
        padding: 0 15px;
    }
} 

/* Search and Sort Styles */
.search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.records-table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.records-table th.sortable a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.sorting-indicator {
    display: none;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
}

.sortable:hover .sorting-indicator,
.sorted-asc .sorting-indicator,
.sorted-desc .sorting-indicator {
    display: block;
}

.sorted-asc .sorting-indicator:before {
    content: '▲';
}

.sorted-desc .sorting-indicator:before {
    content: '▼';
}

/* Enhance table styles */
.records-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.records-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
    text-align: left;
}

.records-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.records-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Checkbox column */
.check-column {
    width: 30px;
    padding: 12px 0 12px 12px !important;
}

.check-column input {
    margin: 0;
} 

/* Add this to style the captcha container */
.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Responsive captcha */
@media screen and (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
} 

.notice {
    margin: 20px 0;
    padding: 12px 15px;
    border-radius: 4px;
    border-left: 4px solid;
}

.notice-success {
    background-color: #f0f9eb;
    border-color: #67c23a;
    color: #67c23a;
}

.notice-error {
    background-color: #fef0f0;
    border-color: #f56c6c;
    color: #f56c6c;
}

.notice.is-dismissible {
    padding-right: 38px;
    position: relative;
}

.notice-dismiss {
    position: absolute;
    top: 0;
    right: 1px;
    border: none;
    margin: 0;
    padding: 9px;
    background: none;
    cursor: pointer;
} 

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 40px !important;
    width: 100%;
}

.wp-hide-pw {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    color: #50575e !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: none !important;
    outline: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.wp-hide-pw:hover,
.wp-hide-pw:focus {
    color: #2271b1 !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border-radius: 4px;
}

.wp-hide-pw .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    display: inline-block !important;
    font-family: dashicons !important;
}

/* Checkbox styling */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.form-group label[for="remember-me"] {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
    cursor: pointer;
}

/* Checkbox container */
.remember-me-wrapper {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.remember-me-wrapper label {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
} 

.verification-links {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.verification-links a {
    color: #2271b1;
    text-decoration: none;
}

.verification-links a:hover {
    color: #135e96;
    text-decoration: underline;
} 

/* Checkbox styling - make more specific to override theme styles */
.pillar-login-form .remember-me-wrapper input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin-right: 8px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    cursor: pointer !important;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    border: 1px solid #8c8f94 !important;
    border-radius: 2px !important;
    background-color: #fff !important;
    visibility: visible !important;
}

/* Label styling */
.pillar-login-form .remember-me-wrapper label {
    font-size: 14px !important;
    color: #50575e !important;
    cursor: pointer !important;
    user-select: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Completely disable any theme pseudo-elements */
.pillar-login-form .remember-me-wrapper input[type="checkbox"]::before,
.pillar-login-form .remember-me-wrapper input[type="checkbox"]::after,
.pillar-login-form .remember-me-wrapper label::before,
.pillar-login-form .remember-me-wrapper label::after {
    display: none !important;
    content: none !important;
}

/* Remove any theme-specific wrapper elements */
.pillar-login-form .remember-me-wrapper .checkbox-wrapper,
.pillar-login-form .remember-me-wrapper .checkbox-container {
    all: unset !important;
    display: contents !important;
}

/* Registration success notice styling */
.notice-small {
    font-size: 13px;
    margin-top: 5px;
    opacity: 0.8;
}

/* Adjust notice positioning */
.pillar-login-form .notice {
    margin-bottom: 25px;
} 

/* Dashboard Layout */
.pillar-dashboard-wrapper {
    --sidebar-width: 280px;
    --primary-color: #3174B4;
    --secondary-color: #37B6AB;
    --pending-color: #F6AD55;
    --approved-color: #48BB78;
    --rejected-color: #F56565;
    
    display: grid !important;
    grid-template-columns: var(--sidebar-width) 1fr !important;
    /* Fill the entire viewport. We previously subtracted 100px to reserve
       space for the WordPress theme header — but App Mode (see
       class-theme-compatibility.php) hides that header on dashboard pages,
       so the subtraction left a permanent white strip at the bottom of
       short pages. Use 100dvh first so iOS Safari's dynamic toolbar doesn't
       break the math, with 100vh as the fallback. */
    grid-template-rows: minmax(100vh, auto) !important;
    grid-template-rows: minmax(100dvh, auto) !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: #f8fafc;
}

/* Main Content Area */
.dashboard-main {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #f8fafc;
    /* `overflow-x: hidden` here was breaking position: sticky for any
       descendant (e.g. the training reading-progress bar), because in
       the spec a non-`visible` overflow value on either axis turns the
       element into a scroll container — and sticky elements stick to
       their nearest scroll-container, not the viewport. `clip` gives
       the same visual effect (no horizontal scroll) without the
       sticky-breaking side effect. The `hidden` line is kept first as
       a fallback for the small slice of browsers that don't yet
       support `clip` (everything older than Safari 16, which is < 3%
       of mobile users today). */
    overflow-x: hidden;
    overflow-x: clip;
    transition: margin-left 0.3s ease;  /* Add smooth transition */
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    position: relative;
}

/* Dashboard Content */
.dashboard-content {
    display: block !important; /* Force display */
    padding: 2rem;
    width: 100%;
    max-width: none !important;
}

/* Stats Overview Section */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 0 0 2rem 0;
    width: 100%;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: none;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0 0 0.5rem 0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Sidebar Styling */
.dashboard-sidebar {
    background: #1a202c;
    min-height: 100%;
    padding: 1.5rem 0;
    width: var(--sidebar-width);
    overflow: hidden;
}

.sidebar-header {
    display: none;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-nav li {
    margin: 0.75rem 0;
    width: 100%;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 15px;
    font-size: 1.125rem;
    font-weight: 500;
    width: 100%;
    position: relative;
}

.sidebar-nav .dashicons {
    width: 28px !important;
    height: 28px !important;
    font-size: 28px !important;
    color: inherit;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav li a:hover,
.sidebar-nav li a:active,
.sidebar-nav li.active a {
    background: rgba(49, 116, 180, 0.9) !important;
    color: white !important;
}

.sidebar-nav li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary-color);
}

.sidebar-bottom {
    margin-top: auto !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* Optional: Add hover effect for logout */
.sidebar-bottom a:hover {
    background: #dc2626 !important;  /* Red color for logout */
}

/* Main Content Area */
.dashboard-main {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Dashboard Content Layout */
.dashboard-content {
    padding: 2rem 3rem;
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
}

/* Stats Overview Grid */
.stats-overview {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 1.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Individual Stat Card */
.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    gap: 1rem;
    min-height: 100px;
}

/* Stat Icon Styling */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Different colors for different stat types */
.stat-icon.hours { background: #E1F0FF; color: #2171B1; }
.stat-icon.pending { background: #FEF3C7; color: #92400E; }
.stat-icon.approved { background: #DEF7EC; color: #03543F; }
.stat-icon.latest { background: #E9D8FD; color: #553C9A; }
.stat-icon.rejected { background: #FEE2E2; color: #DC2626; }

.stat-info h3 {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0 0 0.5rem 0;
}

.stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 0.25rem 0;
}

.stat-info .stat-period {
    font-size: 0.75rem;
    color: #94A3B8;
}

/* Quick Action Cards */
.quick-actions {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-actions h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e2e8f0;
    z-index: 1;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

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

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

.card-content {
    position: relative;
    padding: 1.5rem;
    /* Light blue background with high opacity for readability */
    background: rgba(236, 242, 247, 0.98);  /* Soft blue background */
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Specific styling for EVV card */
.evv-card .card-content {
    background: rgba(230, 247, 245, 0.98);  /* Soft teal background */
}

/* Specific styling for Timesheet card */
.timesheet-card .card-content {
    background: rgba(235, 245, 255, 0.98);  /* Soft blue background */
}

.card-content h3 {
    color: #2C5282;  /* Darker blue for better contrast */
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #4A5568;  /* Dark gray for readability */
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Add contrast overlay for better text visibility */
.action-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
}

/* Recent Submissions */
.recent-submissions {
    width: 100%;
    margin: 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.pending {
    background: var(--pending-color);
    color: #744210;
}

.status-badge.approved {
    background: var(--approved-color);
    color: #22543d;
}

.status-badge.rejected {
    background: var(--rejected-color);
    color: #742a2a;
}

/* Loading States and Animations */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Skeleton Loading */
.skeleton {
    background: #f0f0f0;
    background-image: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.loading-state {
    position: relative;
    overflow: hidden;
}

/* Stats Card Loading */
.stat-card.loading {
    pointer-events: none;
}

.stat-card.loading .stat-value {
    width: 60%;
    height: 24px;
    background: #f0f0f0;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Preview Slide Panel */
.preview-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
    overflow-y: auto;
}

.preview-panel.active {
    transform: translateX(0);
}

.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.preview-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-content {
    padding: 1.5rem;
}

.close-preview {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s ease;
}

.close-preview:hover {
    color: #1e293b;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Preview Panel */
@media (max-width: 1024px) {
    .preview-panel {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .preview-panel {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dashboard-content {
        padding: 1.5rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
}

/* Override WPBakery container limitations */
.wpb_wrapper,
.vc_row,
.vc_column_container,
.vc_column-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Handle WPBakery's default page wrapper */
.page-wrapper,
.main-content-wrapper,
#content,
.entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Search Section */
.header-search {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin-right: 2rem;
}

.global-search {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
}

.header-search .search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

/* Header Actions (Refresh & Profile) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto; /* Push to the right */
    padding-right: calc(1rem + var(--scrollbar-width, 17px)); /* Dynamic padding for scrollbar */
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.user-menu:hover {
    background: #f7fafc;
}

.user-name {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 500;
}

.user-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Override any theme containers */
.container, 
.content-wrapper,
.site-content {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Recent Submissions Styles - New Additions */
.submissions-list {
    margin-top: 1rem;
}

.submission-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.submission-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.submission-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.submission-card.evv::before {
    background-color: #37B6AB;
}

.submission-card.timesheet::before {
    background-color: #3174B4;
}

.submission-type-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 6px;
    min-width: 80px;
}

.submission-type-indicator .type-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.submission-type-indicator .type-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.submission-card[data-type="evv"] .submission-type-indicator {
    background-color: rgba(55, 182, 171, 0.1);  /* Teal background */
    color: #37B6AB;
}

.submission-card[data-type="timesheet"] .submission-type-indicator {
    background-color: rgba(49, 116, 180, 0.1);  /* Blue background */
    color: #3174B4;
}

.submission-details {
    flex: 1;
}

.submission-details h4 {
    margin: 0 0 0.5rem 0;
    color: #2D3748;
    font-size: 1rem;
    font-weight: 600;
}

.details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #718096;
    font-size: 0.875rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Status Badge Refinements */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.status-approved {
    background-color: #DEF7EC;
    color: #03543F;
}

.status-rejected {
    background-color: #FDE2E2;
    color: #9B1C1C;
}

/* Action Buttons Refinements */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
}

.action-btn-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
}

/* Base action button styles for desktop */
.action-btn {
    display: inline-flex;
    flex-direction: row;  /* Horizontal layout for desktop */
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    white-space: nowrap;
}

.action-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    margin-bottom: 0;  /* Remove bottom margin for horizontal layout */
}

.lucide-icon,
.action-icon,
.detail-icon {
    display: inline-block;
    flex: 0 0 16px;
    fill: none !important;
    height: 16px;
    overflow: visible;
    stroke: currentColor !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    vertical-align: middle;
    width: 16px;
}

.lucide-icon *,
.action-icon *,
.detail-icon * {
    fill: none !important;
    stroke: currentColor !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.action-btn .action-icon {
    height: 15px;
    margin-right: 0;
    width: 15px;
}

.stat-icon .lucide-icon {
    height: 24px;
    width: 24px;
}

.detail-item .detail-icon {
    height: 14px;
    width: 14px;
}

.action-btn .btn-label {
    display: inline-block;
    font-size: 13px;
}

/* Add hover effect */
.action-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Specific button styles */
.action-btn.edit-record:hover {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.action-btn.delete-record:hover {
    background-color: #FFEBEE;
    color: #C62828;
}

.action-btn.export-record:hover {
    background-color: #E3F2FD;
    color: #1565C0;
}

.action-btn.view-record:hover {
    background-color: #EDF2F7;
    color: #2C5282;
}

/* Pagination Dots */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #E2E8F0;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: #3174B4;
}

/* Calendar Styles - Updated */
.calendar-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.mini-calendar {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.calendar-title {
    font-weight: 600;
    color: #2D3748;
    font-size: 1.1rem;
}

.calendar-nav {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #718096;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background-color: #F7FAFC;
    color: #2D3748;
}

.calendar-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #718096;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.875rem;
    color: #4A5568;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
    padding: 0.25rem;
}

.calendar-day:hover {
    background-color: #F7FAFC;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day .day-number {
    margin-bottom: 0.25rem;
}

/* Updated markers for better visibility */
.day-marker {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0 1px;
}

.day-marker.evv {
    background-color: #37B6AB;
}

.day-marker.timesheet {
    background-color: #3174B4;
}

.calendar-day.has-evv .day-marker,
.calendar-day.has-timesheet .day-marker {
    display: inline-block;
}

/* Calendar Legend */
.calendar-legend {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #718096;
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-item .dot.evv {
    background-color: #37B6AB;
}

.legend-item .dot.timesheet {
    background-color: #3174B4;
}

/* Today's date highlight */
.calendar-day.today {
    background-color: #EBF8FF;
    font-weight: 600;
}

/* Multiple markers container */
.day-markers {
    display: flex;
    gap: 2px;
    position: absolute;
    bottom: 4px;
}

/* Delete Button Specific Styling */
.action-btn.delete-record {
    color: #E53E3E;
}

.action-btn.delete-record:hover {
    background-color: #FED7D7;
}

.dashboard-error {
    background-color: #FEE2E2;
    border: 1px solid #F87171;
    border-right: 2px solid #F87171; /* Stronger right border */
    color: #991B1B;
    padding: 1rem;
    margin: 1rem 2rem 1rem 0; /* Add right margin to avoid sidebar overlap */
    border-radius: 6px;
    display: none;
    position: relative; /* For close button positioning */
}

/* Add close button */
.dashboard-error .close-error {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #991B1B;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.dashboard-error .close-error:hover {
    background-color: rgba(153, 27, 27, 0.1);
}

/* Ensure error text doesn't overlap with close button */
.dashboard-error .error-message {
    padding-right: 30px;
}

/* Make hover labels match their icons */
.action-btn:hover .btn-label {
    color: inherit;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 999990;
    display: none;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer !important;
    position: relative;
    z-index: 1;
}

.search-result-item:hover {
    background: #f0f7ff;
}

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

.result-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* Make header-search relative for dropdown positioning */
.header-search {
    position: relative;
}

.pillar-dashboard-wrapper .header-search .search-button {
    background: none !important;
    border: none !important;
    padding: 6px !important;
    cursor: pointer;
    color: #64748b !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 4px;
}

.pillar-dashboard-wrapper .header-search .search-button:hover {
    color: #1e293b !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

.pillar-dashboard-wrapper .header-search .search-button.loading {
    opacity: 0.5;
    pointer-events: none;
}

.pillar-dashboard-wrapper .header-search .search-clear {
    position: absolute;
    right: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    padding: 6px !important;
    cursor: pointer;
    color: #64748b !important;
    display: none !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    align-items: center;
    justify-content: center;
}

.pillar-dashboard-wrapper .header-search .search-clear.visible {
    display: flex !important;
}

.pillar-dashboard-wrapper .header-search .search-clear:hover,
.pillar-dashboard-wrapper .header-search .search-button:hover {
    color: #1e293b !important;
}

/* Refresh Button */
.pillar-dashboard-wrapper .refresh-button {
    background: none !important;
    border: none !important;
    padding: 0.5rem !important;
    cursor: pointer;
    color: #64748b !important;
    border-radius: 6px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 36px !important;
    height: 36px !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.pillar-dashboard-wrapper .refresh-button:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

.refresh-button.spinning .dashicons {
    animation: spin 1s linear infinite;
}

/* Success Message */
.refresh-success {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10B981;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.refresh-success .dashicons {
    font-size: 1.25rem;
}

/* Base Mobile Menu Toggle — hidden on desktop, shown via media query */
.pillar-dashboard-wrapper .mobile-menu-toggle,
.mobile-menu-toggle {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer;
}

.mobile-menu-toggle .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Combined Mobile & Tablet Styles (up to 1024px) */
@media (max-width: 1024px) {
    /* Switch from 2-column grid to single column — sidebar is now fixed overlay */
    .pillar-dashboard-wrapper {
        grid-template-columns: 1fr !important;
    }

    /* Lock body scroll when sidebar is open */
    body.sidebar-open,
    html.sidebar-open {
        overflow: hidden;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: calc(-1 * var(--sidebar-width, 280px));
        height: 100%;
        width: var(--sidebar-width, 280px);
        z-index: 999999;
        transition: left 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #1a202c;
    }

    .dashboard-sidebar.active {
        left: 0;
    }

    /* Show mobile menu toggle — match base specificity */
    .pillar-dashboard-wrapper .mobile-menu-toggle,
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 999997;
    }

    /* Overlay */
    .pillar-dashboard-wrapper.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999998;
    }

    /* Close button - single definition */
    .sidebar-close {
        display: none;
        position: sticky;
        top: 1rem;
        right: 1rem;
        z-index: 1000000;
        background: #1a202c;
        padding: 0.75rem;
        border-radius: 4px;
        border: none;
        color: #fff;
        cursor: pointer;
    }

    .mobile-only .sidebar-close {
        display: block;
    }
}

/* Mobile Only Styles */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 1rem;
        box-sizing: border-box !important;
    }

    .dashboard-header {
        padding: 0.75rem 1rem !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        box-sizing: border-box !important;
    }

    .dashboard-header .mobile-menu-toggle {
        margin-left: -8px;
    }

    .header-actions {
        margin-left: auto;
        padding-right: 0 !important;
    }

    .user-menu {
        padding: 0.25rem !important;
    }

    .header-search {
        order: 2;
        flex: 0 0 100%;
        max-width: 100%;
        margin-right: 0;
        margin-top: 0;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .action-cards,
    .submission-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .calendar-section {
        padding: 0.75rem;
    }

    /* Make buttons stack vertically on mobile */
    .action-buttons {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
    
    .action-btn-container {
        flex: 1;
        margin: 0 1px;
    }
    
    .action-btn {
        display: flex;
        flex-direction: column;
        padding: 4px 2px;
        min-width: 30px;
    }
    
    .action-btn .dashicons {
        margin-right: 0;
        margin-bottom: 2px;
    }
    
    .action-btn .btn-label {
        font-size: 10px;
        text-align: center;
    }
    
    /* Hide tooltips on mobile to save space */
    .action-btn-container .pillar-tooltip {
        display: none;
    }

    /* Profile form buttons - mobile specific */
    .form-submit {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .form-submit .button {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.875rem;
        justify-content: center;
    }

    /* Records table: horizontal scroll on small screens */
    .records-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .records-table {
        min-width: 600px;
    }

    /* Submission cards: stack to single column on mobile */
    .submission-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Tablet Only Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .submission-cards,
    .action-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-content {
        padding: 1.5rem;
    }
}

/* Mobile close button */
.sidebar-close {
    display: none;  /* Hidden by default */
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.sidebar-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: block;  /* Show on mobile/tablet */
    }
}

.submissions-pagination {
    margin-top: 20px;
    padding: 10px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:not(:disabled):hover {
    background: #f5f5f5;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.separator {
    color: #666;
}

/* Help Center Styles */
.help-center-container {
    display: block !important; /* Reset the grid */
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

/* Quick Navigation and Content Layout */
.help-content-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
}

.help-toc {
    flex: 0 0 250px;
}

.help-main-content {
    flex: 1;
    padding-right: 20px;
    max-width: calc(100% - 250px - 2rem);
}

/* Search Container - Position it above the grid */
.help-search-container {
    position: relative !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto 2rem auto !important;
    z-index: 1100 !important;
}

/* Remove the white box */
.help-search-container .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent !important; /* Remove white background */
}

#help-search {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
}

#help-search:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.help-search-container .search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #64748b;
}

/* Search Results Dropdown */
.help-search-results {
    position: absolute !important;
    top: calc(100% + 4px) !important; /* Add small gap */
    left: 0 !important;
    width: 100% !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    z-index: 1100 !important;
}

.help-search-results .search-result {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.help-search-results .search-result:last-child {
    border-bottom: none;
}

.help-search-results .search-result a {
    text-decoration: none;
    color: inherit;
}

.help-search-results .search-result h4 {
    color: #2271b1;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.help-search-results .search-result p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.help-search-results .search-result .search-match {
    background-color: rgba(34, 113, 177, 0.1);
    color: #2271b1;
    font-weight: 500;
}

.help-search-results .no-results {
    color: #64748b;
    text-align: center;
    padding: 1rem;
}

/* Loading State */
.help-search-container.is-searching .search-button {
    color: #2271b1;
    animation: spin 1s linear infinite;
}

/* Quick Navigation Section */
.quick-nav {
    position: sticky;
    top: 20px;
    align-self: start;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-nav h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color, #ddd);
}

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

.quick-nav li {
    margin-bottom: 0.5rem;
}

.quick-nav a {
    display: block;
    padding: 0.5rem;
    color: var(--text-color, #333);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.quick-nav a:hover {
    background-color: var(--hover-bg, #f5f5f5);
    color: var(--primary-color, #0073aa);
}

/* Main Content Area */
.help-main-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .help-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quick-nav {
        position: relative;
        top: 0;
        margin-bottom: 1rem;
    }

    .help-search-container {
        padding: 0 0.5rem;
    }

    .help-card {
        padding: 1rem;
    }
}

/* Calendar Help Section */
.calendar-help {
    text-align: center;
    margin: 0.5rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

/* Adjust calendar header spacing */
.calendar-header {
    margin-bottom: 0.5rem; /* Reduced from 1.5rem */
}

/* Tooltip Styles */
.help-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-left: 4px;
}

.help-tooltip .dashicons {
    color: #2271b1;
    width: 16px;
    height: 16px;
}

@media (hover: hover) and (pointer: fine) {
    .help-tooltip:hover .tooltip-content {
        display: block !important;
    }
}

.help-tooltip .tooltip-content {
    display: none;
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    min-width: 200px;
    max-width: 300px;
    z-index: 1000;
    white-space: normal;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Position variations */
.help-tooltip[data-position="top"] .tooltip-content {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
}

.help-tooltip[data-position="right"] .tooltip-content {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
}

.help-tooltip[data-position="bottom"] .tooltip-content {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
}

.help-tooltip[data-position="left"] .tooltip-content {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
}

/* Help Video Container */
.help-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Help Card - Video Section */
.help-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.help-text-content {
    margin-top: 1.5rem;
}

/* Help Card Responsive */
@media (max-width: 768px) {
    .help-video-container {
        margin-bottom: 1rem;
    }
    
    .help-card {
        padding: 1rem;
    }
}

/* Mobile/Tablet Responsive Layout */
@media (max-width: 1024px) {
    .help-content-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .help-toc {
        flex: none;
        width: 100%;
        /* Hide by default on mobile */
        display: none;
    }

    /* Show TOC when active */
    .help-toc.active {
        display: block;
    }

    .help-main-content {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }

    /* Add mobile toggle button styles */
    .toc-toggle {
        display: block;
        width: 100%;
        padding: 0.75rem;
        margin-bottom: 1rem;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        text-align: left;
        font-weight: 500;
        color: #1e293b;
        cursor: pointer;
    }

    .toc-toggle .dashicons {
        margin-right: 0.5rem;
    }
}

/* Action Cards Tooltip Fix */
.action-card {
    position: relative;
}

/* Position tooltips above the cards */
.action-card .help-tooltip .tooltip-content {
    bottom: calc(100% + 8px) !important; /* Position above the card */
    left: 50% !important;                /* Center horizontally */
    transform: translateX(-50%) !important; /* Center alignment */
    top: auto !important;                /* Override any top positioning */
    min-width: 200px;                    /* Minimum width for readability */
    max-width: 300px;                    /* Maximum width to prevent too wide tooltips */
    white-space: normal;                 /* Allow text wrapping */
}

/* Add arrow at bottom of tooltip */
.action-card .help-tooltip .tooltip-content::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;         /* Match tooltip background color */
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-section h2 {
    font-size: 1.5em !important;
    font-weight: 600 !important;
    color: #1d2327 !important;
    margin: 0 0 24px 0 !important;
}

.profile-section .form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.profile-section .form-section h3 {
    font-size: 1.15em !important;
    font-weight: 600 !important;
    color: #1d2327 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.profile-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-image-section .profile-image {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #e5e7eb !important;
    display: block !important;
}

.profile-image-section .profile-image-upload {
    margin-top: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    background: #2271b1 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.profile-image-section .profile-image-upload:hover {
    background: #135e96 !important;
}

.profile-section .form-group {
    margin-bottom: 16px;
}

.profile-section .form-group label {
    display: block !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    color: #374151 !important;
    font-size: 0.9em !important;
}

.profile-section .form-group input[type="text"],
.profile-section .form-group input[type="email"],
.profile-section .form-group input[type="password"] {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    transition: border-color 0.2s !important;
}

.profile-section .form-group input:focus {
    border-color: #2271b1 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15) !important;
}

.profile-section .form-group input:disabled {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

.profile-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profile-section .form-submit {
    text-align: center;
    margin-top: 20px;
}

.profile-section .form-submit button {
    padding: 10px 28px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.profile-section .form-submit .button-primary,
.profile-section .form-submit button[type="submit"] {
    background: #2271b1 !important;
    color: #fff !important;
    border: none !important;
}

.profile-section .form-submit button:hover {
    opacity: 0.9 !important;
}

.profile-section .field-tooltip {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.profile-section .password-input-wrapper {
    position: relative;
}

.profile-section .password-input-wrapper input {
    padding-right: 40px !important;
}

.profile-section .checkbox-group label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
}

.profile-section .checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 4px;
}

.profile-section .checkbox-options label {
    font-weight: 400 !important;
    font-size: 0.9em !important;
}

.profile-section .status-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    position: relative;
}

.profile-section .status-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}

.profile-section .status-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.profile-section .status-message .close-message {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}

.user-menu-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .profile-section .form-row {
        grid-template-columns: 1fr;
    }
}

/* Final member action spacing override for PHP and JS-rendered record buttons. */
.pillar-dashboard-wrapper .submission-actions .action-btn,
.pillar-dashboard-wrapper .action-buttons .action-btn {
    align-items: center !important;
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.pillar-dashboard-wrapper .submission-actions .action-btn .action-icon,
.pillar-dashboard-wrapper .action-buttons .action-btn .action-icon,
.pillar-dashboard-wrapper .submission-actions .action-btn .lucide-icon,
.pillar-dashboard-wrapper .action-buttons .action-btn .lucide-icon {
    flex: 0 0 auto !important;
    margin: 0 5px 0 0 !important;
}

.pillar-dashboard-wrapper .submission-actions .action-btn .btn-label,
.pillar-dashboard-wrapper .action-buttons .action-btn .btn-label {
    line-height: 1 !important;
    margin: 0 !important;
}

/* Keep member filter/action toolbar buttons aligned if a page uses the shared filter pattern. */
.pillar-dashboard-wrapper .filters-section .filter-actions .btn,
.pillar-dashboard-wrapper .filter-actions .btn {
    align-items: center !important;
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    justify-content: center !important;
    line-height: 1 !important;
    min-height: 34px !important;
    white-space: nowrap !important;
}

.pillar-dashboard-wrapper .filters-section .filter-actions .btn .lucide-icon,
.pillar-dashboard-wrapper .filter-actions .btn .lucide-icon {
    flex: 0 0 auto !important;
    margin: 0 6px 0 0 !important;
}