/* Arc CRM Frontend Styles */

.arc-crm-frontend {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #c0c0c0; /* Silver border */
    border-radius: 8px;
    background: #000000; /* Black background */
}

/* Medium Blue Header */
.arc-crm-frontend-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 30px 40px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.arc-crm-frontend-logo {
    flex-shrink: 0;
}

.arc-crm-frontend-logo img {
    height: 144px;
    width: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.arc-crm-frontend-title {
    flex: 1;
}

.arc-crm-frontend-title h2 {
    margin: 0 0 5px;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.arc-crm-frontend-title p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Action Buttons */
.arc-crm-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.arc-crm-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.arc-crm-button-primary {
    background: #2271b1;
    color: white;
}

.arc-crm-button-primary:hover {
    background: #135e96;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.arc-crm-button-small {
    padding: 6px 12px;
    font-size: 13px;
    background: #f0f0f1;
    color: #2c3338;
}

.arc-crm-button-small:hover {
    background: #dcdcde;
    color: #2c3338;
}

.arc-crm-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Small Stat Cards Grid (like backend) */
.arc-crm-stats-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.arc-crm-stat-card-small {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.arc-crm-stat-card-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.arc-crm-stat-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #2271b1;
}

.arc-crm-stat-card-link:hover .arc-crm-stat-content h3 {
    color: #2271b1;
}

.arc-crm-stat-card-link.arc-crm-active-tab {
    border: 2px solid #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.arc-crm-stat-card-link.arc-crm-active-tab .arc-crm-stat-content h3 {
    color: #2271b1;
}

.arc-crm-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arc-crm-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: white;
}

.arc-crm-stat-content h3 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.arc-crm-stat-content p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* Content Grid (Jobs by Status + Follow-ups) */
.arc-crm-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.arc-crm-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.arc-crm-card h2 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arc-crm-card h2 .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.arc-crm-full-width {
    grid-column: 1 / -1;
}

/* Status List */
.arc-crm-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arc-crm-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.arc-crm-status-item strong {
    color: #1f2937;
    font-size: 18px;
}

/* Follow-up List */
.arc-crm-followup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arc-crm-followup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    gap: 15px;
}

.arc-crm-followup-info {
    flex: 1;
}

.arc-crm-followup-info strong {
    display: block;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 4px;
}

.arc-crm-followup-info p {
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 13px;
}

.arc-crm-followup-info small {
    color: #9ca3af;
    font-size: 12px;
}

.arc-crm-empty {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    font-size: 14px;
}

/* Table Styles */
.arc-crm-table-wrapper {
    overflow-x: auto;
    background: #ffffff; /* White background for tables */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.arc-crm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.arc-crm-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.arc-crm-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.arc-crm-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.arc-crm-table tbody tr:hover {
    background: #f9fafb;
}

.arc-crm-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.arc-crm-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.arc-crm-status-badge.status-lead {
    background: #f3f4f6;
    color: #374151;
}

.arc-crm-status-badge.status-scheduled {
    background: #3b82f6;
    color: #ffffff;
}

.arc-crm-status-badge.status-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.arc-crm-status-badge.status-completed {
    background: #10b981;
    color: #ffffff;
}

.arc-crm-status-badge.status-invoiced {
    background: #f59e0b;
    color: #ffffff;
}

.arc-crm-status-badge.status-paid {
    background: #8b5cf6;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .arc-crm-frontend {
        padding: 10px;
    }
    
    .arc-crm-frontend-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .arc-crm-frontend-logo img {
        height: 108px;
        padding: 15px;
    }
    
    .arc-crm-frontend-title h2 {
        font-size: 22px;
    }
    
    .arc-crm-actions {
        flex-direction: column;
    }
    
    .arc-crm-button {
        justify-content: center;
    }
    
    .arc-crm-stats-grid-small {
        grid-template-columns: 1fr;
    }
    
    .arc-crm-content-grid {
        grid-template-columns: 1fr;
    }
    
    .arc-crm-followup-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .arc-crm-table-wrapper {
        margin: 0 -20px;
    }
    
    .arc-crm-table {
        font-size: 13px;
    }
    
    .arc-crm-table th,
    .arc-crm-table td {
        padding: 8px;
    }
}

/* Tab System */
.arc-crm-tab-container {
    margin-top: 25px;
}

.arc-crm-tab-content {
    display: none;
}

.arc-crm-tab-content.arc-crm-tab-active {
    display: block;
    animation: arcCrmFadeIn 0.3s ease-in;
}

@keyframes arcCrmFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.arc-crm-tab-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arc-crm-tab-header h2 .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #3b82f6;
}

.arc-crm-tab-back {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

.arc-crm-tab-back:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}

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

.arc-crm-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.arc-crm-stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.arc-crm-stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Jobs List */
.arc-crm-jobs-list {
    display: grid;
    gap: 20px;
}

.arc-crm-job-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.arc-crm-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.arc-crm-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.arc-crm-job-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.arc-crm-job-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.arc-crm-job-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arc-crm-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.arc-crm-value {
    color: #1f2937;
    font-size: 14px;
}

.arc-crm-value.arc-crm-amount {
    font-weight: 600;
    color: #059669;
}

.arc-crm-job-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.arc-crm-job-description p {
    margin: 0 0 10px;
}

.arc-crm-job-description p:last-child {
    margin-bottom: 0;
}

/* Status Badges */
.arc-crm-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.arc-crm-status-badge.status-lead {
    background: #f3f4f6;
    color: #374151;
}

.arc-crm-status-badge.status-scheduled {
    background: #3b82f6;
    color: #ffffff;
}

.arc-crm-status-badge.status-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.arc-crm-status-badge.status-completed {
    background: #10b981;
    color: #ffffff;
}

.arc-crm-status-badge.status-invoiced {
    background: #f59e0b;
    color: #ffffff;
}

.arc-crm-status-badge.status-paid {
    background: #8b5cf6;
    color: #ffffff;
}

/* Recent Jobs Widget */
.arc-crm-recent-jobs {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.arc-crm-section-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.arc-crm-job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    gap: 15px;
}

.arc-crm-job-item:last-child {
    border-bottom: none;
}

.arc-crm-job-info {
    flex: 1;
}

.arc-crm-job-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.arc-crm-job-meta {
    font-size: 13px;
    color: #6b7280;
}

.arc-crm-separator {
    margin: 0 6px;
}

/* No Jobs Message */
.arc-crm-no-jobs {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .arc-crm-frontend-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .arc-crm-frontend-logo img {
        height: 108px;
        padding: 15px;
    }
    
    .arc-crm-frontend-title h2 {
        font-size: 22px;
    }
    
    .arc-crm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .arc-crm-job-header {
        flex-direction: column;
    }
    
    .arc-crm-job-details {
        grid-template-columns: 1fr;
    }
    
    .arc-crm-job-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Loading Overlay */
.arc-crm-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.arc-crm-loading .arc-crm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: arcCrmSpin 1s linear infinite;
}

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

/* Notifications */
.arc-crm-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.arc-crm-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.arc-crm-notification-success {
    background: #10b981;
    color: white;
}

.arc-crm-notification-error {
    background: #ef4444;
    color: white;
}

/* Header Contact Info */
.arc-crm-header-contact {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    font-size: 13px;
    color: #ffffff;
    flex-wrap: wrap;
}

.arc-crm-header-contact span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.arc-crm-header-contact .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .arc-crm-header-contact {
        flex-direction: column;
        gap: 5px;
    }
}

/* ============================================
   CALENDAR SECTION
   ============================================ */

.arc-crm-calendar-section {
    margin: 30px 0;
    background: #ffffff; /* White background for calendar */
    padding: 20px;
    border-radius: 8px;
}

#arc-crm-calendar {
    margin-top: 20px;
}

/* FullCalendar custom styling to match theme */
.fc {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.fc .fc-button {
    background-color: #2271b1;
    border-color: #2271b1;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-transform: none;
}

.fc .fc-button:hover {
    background-color: #135e96;
    border-color: #135e96;
}

.fc .fc-button:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    opacity: 0.6;
}

.fc .fc-button-active {
    background-color: #135e96;
    border-color: #135e96;
}

.fc .fc-daygrid-day-number {
    color: #374151;
    font-weight: 500;
    padding: 8px;
}

.fc .fc-col-header-cell {
    background-color: #f9fafb;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 12px;
    padding: 12px 8px;
    border-color: #e5e7eb;
}

.fc .fc-daygrid-day {
    border-color: #e5e7eb;
}

.fc .fc-daygrid-day:hover {
    background-color: #f9fafb;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: #eff6ff !important;
}

.fc .fc-event {
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 2px;
    font-size: 13px;
    cursor: pointer;
    border-width: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.fc .fc-event:hover {
    opacity: 0.85;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.fc .fc-event-main {
    color: white;
}

.fc .fc-event-title {
    font-weight: 500;
}

.fc .fc-more-link {
    color: #2271b1;
    font-weight: 600;
    font-size: 12px;
}

.fc .fc-more-link:hover {
    color: #135e96;
}

/* Week and Day view styling */
.fc .fc-timegrid-slot {
    height: 3em;
}

.fc .fc-timegrid-event {
    border-radius: 4px;
    padding: 4px 8px;
}

/* Loading state */
.fc .fc-event-loading {
    opacity: 0.3;
}

/* Responsive calendar */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .fc .fc-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 20px;
    }
    
    .fc .fc-event {
        font-size: 11px;
        padding: 2px 4px;
    }
}

@media (max-width: 480px) {
    .fc .fc-daygrid-day-number {
        font-size: 12px;
        padding: 4px;
    }
    
    .fc .fc-col-header-cell {
        font-size: 10px;
        padding: 8px 4px;
    }
}

/* ============================================
   EMPLOYEE MODAL
   ============================================ */

.arc-crm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arc-crm-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.arc-crm-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
}

.arc-crm-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.arc-crm-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.arc-crm-modal-content form {
    padding: 20px;
}

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

.arc-crm-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.arc-crm-form-group input,
.arc-crm-form-group select,
.arc-crm-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.arc-crm-form-group input:focus,
.arc-crm-form-group select:focus,
.arc-crm-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.arc-crm-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 10px;
}

.arc-crm-button-small {
    padding: 6px 12px;
    font-size: 13px;
}

.arc-crm-button-danger {
    background-color: #dc2626;
    color: white;
}

.arc-crm-button-danger:hover {
    background-color: #b91c1c;
}

/* Responsive modal */
@media (max-width: 640px) {
    .arc-crm-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .arc-crm-modal-header {
        padding: 15px;
    }
    
    .arc-crm-modal-content form {
        padding: 15px;
    }
}

/* ============================================
   EMPLOYEE COLOR ELEMENTS
   ============================================ */

.arc-crm-color-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.arc-crm-color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arc-crm-color-picker-wrapper input[type="color"] {
    width: 100%;
    height: 50px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
}

.arc-crm-color-helper {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Calendar events with no crew lead styling */
.fc-event.no-crew-lead {
    background-color: #e5e7eb !important;
    border: 1px solid #000000 !important;
    color: #374151 !important;
}

/* ============================================
   SCHEDULE STATUS INDICATORS
   ============================================ */

/* Status indicators on calendar events */
.fc-event[data-status="in_progress"] {
    border-left: 4px solid #f59e0b !important;
    font-weight: 600;
}

.fc-event[data-status="completed"] {
    opacity: 0.7;
    text-decoration: line-through;
}

.fc-event-title {
    font-weight: 500;
}

/* Time-based events styling */
.fc-timegrid-event {
    border-radius: 3px;
    padding: 2px 4px;
}

.fc-timegrid-event .fc-event-time {
    font-weight: 600;
    font-size: 11px;
}

/* Calendar toolbar adjustments */
.fc-toolbar-title {
    font-size: 1.5em;
    font-weight: 600;
}

.fc-button {
    background-color: #2271b1 !important;
    border-color: #2271b1 !important;
}

.fc-button:hover {
    background-color: #135e96 !important;
}

.fc-button-active {
    background-color: #135e96 !important;
}

/* ============================================
   CALENDAR INTERACTION ENHANCEMENTS
   ============================================ */

/* Make time slots clickable with visual feedback */
.fc-timegrid-slot {
    cursor: pointer;
    transition: background-color 0.2s;
}

.fc-timegrid-slot:hover {
    background-color: rgba(34, 113, 177, 0.1);
}

.fc-daygrid-day {
    cursor: pointer;
}

.fc-daygrid-day:hover {
    background-color: rgba(34, 113, 177, 0.05);
}

/* Event hover feedback */
.fc-event {
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TABLE SEARCH AND SORTING
   ============================================ */

/* Search Bar */
.arc-crm-search-bar {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arc-crm-search-bar .dashicons {
    position: absolute;
    left: 15px;
    color: #6b7280;
    pointer-events: none;
}

.arc-crm-search-bar input {
    flex: 1;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.arc-crm-search-bar input:focus {
    outline: none;
    border-color: #2271b1;
}

.arc-crm-search-count {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    min-width: 150px;
    text-align: right;
}

/* Sortable Table Headers */
.arc-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s;
}

.arc-sortable:hover {
    background-color: #f3f4f6;
}

.arc-sort-indicator {
    display: inline-block;
    margin-left: 5px;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.arc-sort-indicator::after {
    content: '⇅';
    font-size: 12px;
}

.arc-sortable.sorted-asc .arc-sort-indicator {
    opacity: 1;
}

.arc-sortable.sorted-asc .arc-sort-indicator::after {
    content: '↑';
    color: #2271b1;
    font-size: 14px;
    font-weight: bold;
}

.arc-sortable.sorted-desc .arc-sort-indicator {
    opacity: 1;
}

.arc-sortable.sorted-desc .arc-sort-indicator::after {
    content: '↓';
    color: #2271b1;
    font-size: 14px;
    font-weight: bold;
}

/* Hidden rows (filtered out) */
.arc-crm-table tbody tr[style*="display: none"] {
    display: none !important;
}

/* Stripe Connection Spinner */
.arc-crm-spinner {
    border: 4px solid #e5e7eb;
    border-top-color: #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: arc-spin 0.8s linear infinite;
}

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

/* Stripe status badges */
.arc-status-badge.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.arc-status-badge.status-draft {
    background: #fee2e2;
    color: #991b1b;
}

/* Header User Info & Auth Links */
.arc-crm-header-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
}

.arc-crm-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: white;
}

.arc-crm-username {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.arc-crm-userrole {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.arc-crm-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.arc-crm-auth-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.arc-crm-auth-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
