/* Improved styles for the Contractor Gig Claim plugin */
.cgc-gigs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    font-family: Arial, sans-serif;
}

.cgc-gigs-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.cgc-gig-item {
    display: flex;
    flex-direction: row;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.cgc-gig-item:hover {
    background-color: #f1f1f1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.cgc-gig-title {
    margin: 0;
    font-size: 1.3em;
    color: #333;
    flex: 1;
}

.cgc-gig-details {
    margin-bottom: 15px;
}

.cgc-gig-details p {
    margin: 5px 0;
}

.cgc-gig-description {
    margin: 15px 0;
    line-height: 1.5;
}

.cgc-claimed-by {
    margin-top: 10px;
    padding: 8px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

.cgc-claimed-by h4 {
    margin: 0;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.cgc-claimed-by p {
    margin: 2px 0 0 0;
    font-size: 14px;
    color: #333;
}

.cgc-claim-form {
    margin-top: 15px;
}

.cgc-button {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cgc-button.cgc-loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
    position: relative;
}

.cgc-button.cgc-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: cgc-spin 0.6s linear infinite;
}

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

.cgc-claim {
    background-color: #0073aa;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.cgc-claim:hover {
    background-color: #005177;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4);
    transform: translateY(-1px);
}

.cgc-claim:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.cgc-claimed {
    background-color: #4CAF50;
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.cgc-full {
    background-color: #f44336;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.cgc-canceled {
    background-color: #9e9e9e;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: 0 2px 4px rgba(158, 158, 158, 0.2);
}

.cgc-interested-btn {
    background-color: #9c27b0;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
}

.cgc-interested-btn:hover {
    background-color: #7b1fa2;
    box-shadow: 0 4px 8px rgba(156, 39, 176, 0.4);
    transform: translateY(-1px);
}

.cgc-interested-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
}

.cgc-interested {
    background-color: #7b1fa2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(123, 31, 162, 0.3);
}

.cgc-interested:hover {
    background-color: #6a1b9a;
    box-shadow: 0 4px 8px rgba(123, 31, 162, 0.4);
    transform: translateY(-1px);
}

.cgc-interested:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(123, 31, 162, 0.3);
}

.cgc-no-gigs {
    text-align: center;
    padding: 30px;
    font-size: 1.2em;
    color: #666;
}

.cgc-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
}

.cgc-message-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.cgc-message-info {
    background-color: #d9edf7;
    color: #31818f;
    border: 1px solid #bce8f1;
}

.cgc-message-error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Add styles for calendar view */
.cgc-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cgc-view-toggle {
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
}

.cgc-view-toggle a {
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
}

.cgc-view-toggle a.active {
    font-weight: bold;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
}

#cgc-calendar {
    height: 650px;
    margin-bottom: 30px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Single gig page styles */
.cgc-single-gig {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cgc-single-gig .entry-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.cgc-single-gig .cgc-gig-details {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.cgc-single-gig .entry-content {
    margin-bottom: 30px;
    line-height: 1.6;
}

.cgc-single-gig .cgc-claim-section {
    margin: 30px 0;
    text-align: center;
}

.cgc-single-gig .entry-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
}

/* Add styles for gig images and improved details */
.cgc-gig-image {
    margin-bottom: 20px;
    text-align: center;
}

.gig-featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Horizontal layout for details */
.cgc-gig-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
}

.cgc-list-detail-item {
    flex: 0 1 auto;
    min-width: 120px;
    max-width: 200px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.cgc-list-detail-item .cgc-detail-icon {
    font-size: 18px;
    margin-right: 8px;
    color: #0073aa;
}

.cgc-list-detail-item .cgc-detail-content {
    flex: 1;
}

.cgc-list-detail-item .cgc-detail-content h4 {
    margin: 0;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cgc-list-detail-item .cgc-detail-content p {
    margin: 2px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Admin styles for image upload */
.gig-image-container {
    margin-bottom: 10px;
}

.gig-image-container img {
    max-width: 150px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.remove-gig-image {
    vertical-align: middle;
}

/* List view with images */
.cgc-gig-item {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
}

.cgc-gig-thumbnail {
    align-self: center;
}

.cgc-gig-thumbnail img {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .cgc-gig-item {
        grid-template-columns: 1fr;
    }
    
    .cgc-gig-thumbnail {
        text-align: center;
        margin-bottom: 15px;
    }
}

.cgc-unclaim {
    background-color: #ff9800;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.cgc-unclaim:hover {
    background-color: #e68a00;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
    transform: translateY(-1px);
}

.cgc-unclaim:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.cgc-gig-description {
    margin: 15px 0;
    line-height: 1.5;
    color: #555;
}

.cgc-list-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.cgc-button.cgc-view {
    background-color: #E579B1;
    color: white;
    box-shadow: 0 2px 4px rgba(91, 192, 222, 0.3);
}

.cgc-button.cgc-view:hover {
    background-color: #B55B7F;
    box-shadow: 0 4px 8px rgba(91, 192, 222, 0.4);
    transform: translateY(-1px);
}

.cgc-button.cgc-view:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(91, 192, 222, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cgc-gig-details-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .cgc-list-detail-item {
        flex: 0 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .cgc-list-detail-item {
        flex: 0 1 100%;
        max-width: none;
    }
}

/* Calendar event hover styles */
.cgc-event-hover {
    background-color: #f5f5f5 !important;
    border-color: #0073aa !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    z-index: 10 !important;
}

/* Custom tooltip styles */
.fc-event {
    position: relative;
}

.fc-event[title]:hover:after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 0;
    background: #333;
    color: white;
    padding: 8px;
    border-radius: 4px;
    white-space: pre-line;
    z-index: 1000;
    width: 200px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Adjust tooltip position for events on the right side */
.fc-event.fc-event-end[title]:hover:after {
    left: auto;
    right: 100%;
}

/* Tabbed navigation styles */
.cgc-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cgc-tabs-navigation {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.cgc-tab {
    padding: 10px 20px;
    margin-right: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.cgc-tab .dashicons {
    margin-right: 5px;
}

.cgc-tab:hover {
    background-color: #e9e9e9;
}

.cgc-tab.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    color: #0073aa;
    font-weight: bold;
}

.cgc-tab-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

@media (max-width: 768px) {
    .cgc-tabs-navigation {
        flex-direction: column;
        border-bottom: none;
    }
    
    .cgc-tab {
        margin-right: 0;
        margin-bottom: 5px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    
    .cgc-tab.active {
        border-bottom: 1px solid #ddd;
        margin-bottom: 5px;
    }
    
    .cgc-tab-content {
        border: 1px solid #ddd;
        border-radius: 5px;
    }
}

/* Modal styles */
.cgc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cgc-modal.show {
    opacity: 1;
    display: block;
}

.cgc-modal-content {
    position: relative;
    background-color: #fff;
    margin: 10vh auto; /* Center vertically with some top margin */
    padding: 25px;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-height: 80vh; /* Reduced to account for top margin */
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.cgc-modal.show .cgc-modal-content {
    transform: translateY(0);
}

/* Modal actions layout */
.cgc-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.cgc-modal-actions .cgc-claim-form {
    flex: 0 0 auto;
}

/* Close button styles */
.cgc-close-button {
    background-color: #666 !important;
    color: white !important;
    border: 1px solid #555 !important;
    border-radius: 4px !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    font-weight: normal !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-height: 44px !important;
}

.cgc-close-button:hover,
.cgc-close-button:active {
    background-color: #444 !important;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.cgc-modal-gig {
    padding: 10px;
}

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

.cgc-modal-header h2 {
    margin: 0;
    padding-right: 5px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    flex: 1;
}

.cgc-edit-toggle {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cgc-edit-toggle:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
    transform: translateY(-1px);
}

.cgc-edit-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Edit Form Styles */
.cgc-edit-form {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.cgc-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.cgc-edit-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    background-color: #fafafa;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.cgc-edit-section-title {
    grid-column: 1 / -1;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.cgc-edit-section .cgc-edit-field {
    display: flex;
    flex-direction: column;
}

.cgc-edit-field {
    display: flex;
    flex-direction: column;
}

.cgc-edit-field label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.cgc-edit-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.cgc-edit-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.cgc-edit-input[type="text"],
.cgc-edit-input[type="number"],
.cgc-edit-input[type="date"],
.cgc-edit-input[type="time"],
.cgc-edit-input[type="select"],
.cgc-edit-input select {
    width: 100%;
}

.cgc-edit-input textarea {
    resize: vertical;
    min-height: 80px;
}

.cgc-edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cgc-save-edit {
    background-color: #28a745;
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.cgc-save-edit:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.cgc-cancel-edit {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.cgc-cancel-edit:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
}

.cgc-modal-image {
    max-width: 250px;
    margin-bottom: 20px;
    text-align: center;
}

.cgc-modal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.cgc-modal-details {
    margin-bottom: 20px;
}

.cgc-modal-content-text {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cgc-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Improved modal details grid */
.cgc-modal .cgc-gig-details-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.cgc-modal .cgc-detail-item {
    flex: 0 0 calc(20% - 15px);
    min-width: 100px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.cgc-modal .cgc-detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.cgc-modal .cgc-detail-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #e9f5ff;
    color: #0073aa;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 20px;
}

.cgc-modal .cgc-detail-content h4 {
    color: #495057;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cgc-modal .cgc-detail-content p {
    color: #212529;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .cgc-modal .cgc-detail-item {
        flex: 0 0 100%;
    }
}

/* Horizontal layout for gig items */
.cgc-gig-item {
    display: flex;
    flex-direction: row;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.cgc-gig-thumbnail {
    flex: 0 0 150px;
    margin-right: 20px;
}

.cgc-gig-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.cgc-comment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: orangered;
    border-radius: 12px;
    margin-left: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.cgc-gig-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cgc-gig-item {
        flex-direction: column;

    }
    
    .cgc-gig-thumbnail {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .cgc-gig-header {
        flex-direction: column;
    }
    
    .cgc-gig-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cgc-list-actions {
        margin-top: 15px;
        width: 100%;
    }
}

/* My Account styles */
.cgc-my-account {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.cgc-account-navigation {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.cgc-account-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f5f5f5;
    border-radius: 5px;
    overflow: hidden;
}

.cgc-account-navigation li {
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.cgc-account-navigation li:last-child {
    border-bottom: none;
}

.cgc-account-navigation a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cgc-account-navigation a:hover {
    background-color: #e9e9e9;
}

.cgc-account-navigation li.active a {
    background-color: #0073aa;
    color: white;
    font-weight: bold;
}

.cgc-account-content {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .cgc-account-navigation,
    .cgc-account-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .cgc-account-navigation {
        margin-bottom: 20px;
    }
}

/* Calendar event colors based on status */
.fc-event.gig-unclaimed {
    background-color: #0073aa;
    border-color: #005177;
}

.fc-event.gig-claimed {
    background-color: #4CAF50;
    border-color: #388E3C;
}

.fc-event.gig-full {
    background-color: #F44336;
    border-color: #D32F2F;
}

.fc-event.gig-partial {
    background-color: #FF9800;
    border-color: #F57C00;
}

/* Improved tooltip for calendar events */
.cgc-event-tooltip {
    position: absolute;
    z-index: 10000;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    padding: 10px 15px;
    max-width: 300px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cgc-event-tooltip.show {
    opacity: 1;
}

.cgc-event-tooltip-header {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.cgc-event-tooltip-details {
    font-size: 13px;
    line-height: 1.4;
}

.cgc-event-tooltip-detail {
    margin: 3px 0;
    display: flex;
}

.cgc-event-tooltip-label {
    font-weight: bold;
    margin-right: 5px;
    min-width: 70px;
}

.cgc-event-tooltip-status {
    margin-top: 5px;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
}

.cgc-event-tooltip-status.unclaimed {
    background-color: #e3f2fd;
    color: #0073aa;
}

.cgc-event-tooltip-status.claimed {
    background-color: #e8f5e9;
    color: #4CAF50;
}

.cgc-event-tooltip-status.full {
    background-color: #ffebee;
    color: #F44336;
}

.cgc-event-tooltip-status.partial {
    background-color: #fff3e0;
    color: #FF9800;
}

/* Mobile optimizations for modal and comments */
@media (max-width: 768px) {
    /* Modal improvements */
    .cgc-modal-content {
        max-height: 85vh;
        overflow-y: auto;
        padding: 10px;
        margin: 5vh auto; /* Less top margin on mobile */
        width: 98%;
        border-radius: 8px;
    }
    
    .cgc-modal-header {
        position: sticky;
        top: 0;
        background-color: #fff;
        z-index: 10;
        padding: 16px 12px 12px;
        margin: -10px -10px 10px -10px;
        border-bottom: 1px solid #e9ecef;
        border-radius: 8px 8px 0 0;
    }
    
    
    /* Add swipe indicator for mobile */
    .cgc-modal-content::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: #ddd;
        border-radius: 2px;
        z-index: 11;
    }
    
    /* Ensure modal content has relative positioning for the swipe indicator */
    .cgc-modal-content {
        position: relative !important;
    }
    
    /* Mobile modal actions */
    .cgc-modal-actions {
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
        align-items: center;
    }
    
    .cgc-modal-actions .cgc-claim-form {
        flex: 1;
    }
    
    .cgc-close-button {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-top: 0 !important;
        background-color: #666 !important;
        color: white !important;
        border: 1px solid #555 !important;
        border-radius: 4px !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
        min-height: 44px !important;
    }
    
    /* Comment form improvements */
    .cgc-comment-form textarea {
        height: 80px;
        min-height: 80px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 10px;
    }
    
    .cgc-comment-form-container {
        position: sticky;
        bottom: 0;
        background-color: #fff;
        padding: 10px 0;
        border-top: 1px solid #eee;
        margin-top: 15px;
        z-index: 5;
    }
    
    .cgc-submit-comment,
    .cgc-submit-reply {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        margin-top: 8px;
    }
    
    /* Comment styling improvements */
    .cgc-comments-section {
        margin-bottom: 60px; /* Space for the sticky comment form */
    }
    
    .cgc-comment {
        padding: 12px 10px;
        margin-bottom: 10px;
    }
    
    .cgc-comment-header {
        flex-wrap: wrap;
    }
    
    .cgc-comment-author {
        font-size: 14px;
    }
    
    .cgc-comment-date {
        width: 100%;
        font-size: 12px;
        margin-top: 4px;
    }
    
    .cgc-comment-content {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .cgc-comment-actions {
        margin-top: 8px;
    }
    
    .cgc-reply-button, 
    .cgc-delete-comment {
        font-size: 12px;
        padding: 5px 8px;
        background-color: #f5f5f5;
        border: 1px solid #ddd;
        border-radius: 3px;
        text-decoration: none;
    }
    
    .cgc-delete-comment {
        background-color: #fff0f0;
    }
    
    .cgc-replies {
        margin-left: 10px;
        padding-left: 10px;
        border-left: 1px solid #ddd;
    }
    
    /* Form actions in replies */
    .cgc-form-actions {
        display: flex;
        gap: 5px;
    }
    
    .cgc-cancel-reply,
    .cgc-submit-reply {
        flex: 1;
        padding: 10px;
        font-size: 14px;
    }
}

/* Fix for iOS devices to prevent zoom on input focus */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="date"],
    input[type="month"],
    input[type="time"],
    input[type="week"],
    input[type="number"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    input[type="tel"],
    input[type="color"] {
        font-size: 16px;
    }
}

/* Touch-friendly calendar */
.fc-event {
    padding: 8px 4px !important;
    margin: 2px 0 !important;
}

.fc-daygrid-event {
    white-space: normal !important;
}

/* Improve calendar event display */
.fc-event-title {
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ensure calendar fits container */
.cgc-calendar-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}


/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Better touch targets for buttons */
    .cgc-button {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 6px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Improved tab navigation for mobile */
    .cgc-tabs a {
        min-height: 44px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better spacing for gig items */
    .cgc-gig-item {
        margin: 10px 0;
        padding: 16px;
        border-radius: 8px;
    }
    
    /* Improved modal overlay for mobile */
    .cgc-modal {
        padding: 10px;
    }
    
    /* Better calendar navigation */
    .cgc-calendar-nav button {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 16px;
        border-radius: 6px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Prevent zoom on form inputs */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Extra small screens - further optimizations */
@media (max-width: 480px) {
    .cgc-calendar-nav button {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .cgc-calendar-title {
        font-size: 16px;
    }
    
    .cgc-calendar-table th {
        font-size: 10px;
        padding: 6px 1px;
    }
    
    .cgc-calendar-day {
        min-height: 70px;
        padding: 2px;
    }
    
    .cgc-day-number {
        font-size: 12px;
    }
    
    .cgc-day-gig-time {
        font-size: 9px;
    }
    
    .cgc-day-gig-title {
        font-size: 9px;
    }
    
    .cgc-day-gig-status {
        font-size: 7px;
        padding: 1px 3px;
    }
}

/* Map link styling */
.cgc-map-link {
    color: #0073aa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.cgc-map-link:hover {
    color: #00a0d2;
    text-decoration: underline;
}

.cgc-map-link .dashicons {
    margin-left: 5px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Calendar dropdown styling */
.cgc-add-to-calendar-btn {
    display: inline-flex;
    align-items: center;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cgc-add-to-calendar-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.cgc-add-to-calendar-btn .dashicons {
    margin-right: 5px;
}

.cgc-calendar-dropdown {
    position: absolute;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 200px;
}

.cgc-calendar-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.cgc-calendar-option:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.cgc-calendar-option .dashicons {
    margin-right: 8px;
    color: #555;
}

/* Comments styling */
.cgc-comments-section {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.cgc-comments-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.cgc-comments-list {
    margin-bottom: 20px;
}

.cgc-no-comments {
    color: #666;
    font-style: italic;
}

.cgc-comment {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #ddd;
}

.cgc-admin-comment {
    border-left-color: #0073aa;
    background-color: #f0f7fb;
}

.cgc-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.cgc-comment-author {
    font-weight: bold;
    margin-right: 8px;
}

.cgc-admin-badge {
    background-color: #0073aa;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

.cgc-comment-date {
    color: #777;
    font-size: 12px;
}

.cgc-comment-content {
    margin-bottom: 10px;
}

.cgc-comment-content p {
    margin: 0 0 10px;
}

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

.cgc-comment-actions {
    display: flex;
    gap: 10px;
}

.cgc-reply-button, 
.cgc-delete-comment {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
}

.cgc-delete-comment {
    color: #d63638;
}

.cgc-reply-form-container {
    margin-top: 10px;
    margin-bottom: 10px;
}

.cgc-replies {
    margin-top: 10px;
    margin-left: 20px;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.cgc-comment-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
}

.cgc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cgc-cancel-reply {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
}

.cgc-submit-comment,
.cgc-submit-reply {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
}

.cgc-submit-comment:hover,
.cgc-submit-reply:hover {
    background-color: #005177;
}

/* Mobile optimizations for comments */
@media (max-width: 768px) {
    .cgc-replies {
        margin-left: 10px;
        padding-left: 10px;
    }
    
    .cgc-comment {
        padding: 10px;
    }
    
    .cgc-comment-header {
        flex-wrap: wrap;
    }
    
    .cgc-comment-date {
        width: 100%;
        margin-top: 4px;
    }
}

/* Tabs styling */
.cgc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.cgc-tab {
    padding: 10px 15px;
    margin-right: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.cgc-tab:hover {
    background-color: #e9e9e9;
    color: #333;
}

.cgc-tab.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    color: #0073aa;
}

/* Past gig styling */
.cgc-past-gig {
    opacity: 0.8;
    background-color: #f5f5f5;
    border-left: 3px solid #999;
}

.cgc-past-gig .cgc-gig-title {
    color: #666;
}

.cgc-past-gig:hover {
    opacity: 1;
    background-color: #f0f0f0;
}

/* Calendar view styling */
.cgc-calendar-view {
    margin-top: 20px;
}

.cgc-calendar-month {
    margin-bottom: 40px;
}

.cgc-month-heading {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

.cgc-month-gigs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cgc-calendar-gig {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.cgc-calendar-gig:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cgc-calendar-gig-actions {
    display: flex;
    gap: 15px;
}

.cgc-gig-actions {
    display: flex;
    gap: 15px;
}

.cgc-calendar-date {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #0073aa;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cgc-calendar-gig {
        padding: 15px;
    }
    
    .cgc-month-heading {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* Recently Added Banner */
.cgc-recently-added {
    position: absolute;
    top: 10px;
    right: -5px;
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: rotate(5deg);
    z-index: 5;
}

.cgc-recently-added:before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    border-top: 5px solid #c53030;
    border-right: 5px solid transparent;
    z-index: -1;
}

/* Fully Claimed Banner */
.cgc-fully-claimed-banner {
    position: absolute;
    top: 10px;
    right: -5px;
    background-color: #ff9800;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: rotate(5deg);
    z-index: 5;
}

.cgc-fully-claimed-banner:before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    border-top: 5px solid #f57c00;
    border-right: 5px solid transparent;
    z-index: -1;
}

/* I Worked This Gig Banner */
.cgc-worked-gig {
    position: absolute;
    top: 10px;
    right: -5px;
    background-color: #4caf50;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: rotate(-3deg);
    z-index: 5;
}

.cgc-worked-gig:before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    border-top: 5px solid #2e7d32;
    border-right: 5px solid transparent;
    z-index: -1;
}

/* Calendar view recently added */
.cgc-calendar-gig .cgc-recently-added {
    top: 5px;
    right: 5px;
    transform: rotate(0);
    font-size: 10px;
    padding: 3px 8px;
}

/* Calendar view fully claimed */
.cgc-calendar-gig .cgc-fully-claimed-banner {
    top: 5px;
    right: 5px;
    transform: rotate(0);
    font-size: 10px;
    padding: 3px 8px;
}

/* Calendar view worked gig */
.cgc-calendar-gig .cgc-worked-gig {
    top: 5px;
    right: 5px;
    transform: rotate(0);
    font-size: 10px;
    padding: 3px 8px;
}

/* Canceled Banner */
.cgc-canceled-banner {
    position: absolute;
    top: 10px;
    right: -5px;
    background-color: #9e9e9e;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: rotate(3deg);
    z-index: 6;
}

.cgc-canceled-banner:before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    border-top: 5px solid #616161;
    border-right: 5px solid transparent;
    z-index: -1;
}

/* Calendar view canceled */
.cgc-calendar-gig .cgc-canceled-banner {
    top: 5px;
    right: 5px;
    transform: rotate(0);
    font-size: 10px;
    padding: 3px 8px;
}

/* Canceled gig styling */
.cgc-canceled-gig {
    opacity: 0.7;
    position: relative;
}

.cgc-canceled-gig .cgc-button.cgc-canceled {
    background-color: #9e9e9e;
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Upcoming Gigs View (Date-grouped) */
.cgc-upcoming-view {
    margin-top: 20px;
}

.cgc-date-group {
    margin-bottom: 30px;
}

.cgc-date-heading {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

.cgc-date-gigs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cgc-upcoming-gig {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.cgc-upcoming-gig:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cgc-upcoming-gig-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Align comment badge with upcoming gig title */
.cgc-upcoming-gig .cgc-comment-badge {
    vertical-align: middle;
    margin-left: 8px;
    display: inline-block;
}

/* Align comment badge with claimed gig title */
.cgc-gig-item .cgc-comment-badge {
    vertical-align: middle;
    margin-left: 8px;
    display: inline-block;
}

/* Ensure proper alignment for titles with badges */
.cgc-upcoming-gig-title,
.cgc-gig-title {
    display: inline-block;
    vertical-align: middle;
}

/* Make the gig content container handle inline elements properly */
.cgc-gig-content {
    display: block;
}

.cgc-gig-content .cgc-comment-badge + .cgc-gig-title {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0;
}

.cgc-upcoming-gig-time,
.cgc-upcoming-gig-location,
.cgc-upcoming-gig-workers {
    margin: 5px 0;
    font-size: 14px;
}

.cgc-upcoming-gig-actions {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

/* True Calendar View */
.cgc-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cgc-calendar-title {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

.cgc-calendar-nav-prev,
.cgc-calendar-nav-next {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.cgc-calendar-nav-prev:hover,
.cgc-calendar-nav-next:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

.cgc-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.cgc-calendar-table th {
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    text-align: center;
}

.cgc-calendar-day {
    height: 120px;
    border: 1px solid #ddd;
    vertical-align: top;
    padding: 5px;
    position: relative;
}

.cgc-day-number {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: right;
}

.cgc-today {
    background-color: #f0f7ff;
}

.cgc-past-day {
    background-color: #f9f9f9;
}

.cgc-other-month {
    background-color: #f5f5f5;
}

.cgc-day-gigs {
    max-height: 100%;
}

.cgc-calendar-day-gig {
    padding: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

/* Status indicators at the top */
.cgc-day-gig-status-row {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.cgc-day-gig-status {
    display: inline-block;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.cgc-day-gig-new {
    position: static;
    background-color: #ff6b6b;
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    margin-left: auto;
}

/* Gig details below status */
.cgc-day-gig-link {
    display: block;
    text-decoration: none;
    color: #0073aa;
}

.cgc-day-gig-time {
    font-weight: bold;
    font-size: 9px;
    display: block;
    margin-bottom: 2px;
}

.cgc-day-gig-title {
    font-size: 10px;
    display: block;
    line-height: 1.2;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    /* Calendar mobile improvements */
    .cgc-calendar-container {
        padding: 8px;
        overflow-x: auto;
    }
    
    .cgc-calendar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        gap: 8px;
    }
    
    .cgc-calendar-nav button {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 14px;
        white-space: nowrap;
        min-width: 60px;
    }
    
    .cgc-calendar-title {
        flex: 1;
        text-align: center;
        margin: 0;
        font-size: 18px;
        min-width: 0; /* Allow shrinking */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .cgc-calendar-table {
        font-size: 12px;
        width: 100%;
        table-layout: fixed;
    }
    
    .cgc-calendar-table th {
        font-size: 11px;
        padding: 8px 2px;
        text-align: center;
        font-weight: bold;
    }
    
    .cgc-calendar-day {
        min-height: 80px;
        padding: 4px;
        vertical-align: top;
    }
    
    .cgc-day-number {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 4px;
    }
    
    .cgc-calendar-day-gig {
        padding: 6px;
        margin-bottom: 4px;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .cgc-calendar-day-gig:hover,
    .cgc-calendar-day-gig:active {
        transform: scale(1.02);
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }
    
    .cgc-day-gig-status {
        font-size: 8px;
        padding: 2px 4px;
        border-radius: 3px;
        margin-bottom: 2px;
        display: inline-block;
    }
    
    .cgc-day-gig-new {
        font-size: 8px;
        padding: 2px 4px;
        border-radius: 3px;
        margin-bottom: 2px;
        display: inline-block;
    }
    
    .cgc-day-gig-time {
        font-size: 10px;
        font-weight: bold;
        display: block;
        margin-bottom: 2px;
    }
    
    .cgc-day-gig-title {
        font-size: 10px;
        line-height: 1.2;
        display: block;
    }
}

/* Loading indicator for calendar */
.cgc-loading {
    position: relative;
    min-height: 200px;
}

.cgc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cgc-loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #007cba;
    animation: cgc-spin 1s ease-in-out infinite;
}

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

/* Style the navigation buttons to look like links */
.cgc-calendar-nav-prev,
.cgc-calendar-nav-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #333;
    transition: background-color 0.2s;
}

.cgc-calendar-nav-prev:hover,
.cgc-calendar-nav-next:hover {
    background-color: #e0e0e0;
}

/* Calendar day gig status indicators */
.cgc-day-gig-status {
    display: inline-block;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.cgc-status-claimed {
    background-color: #4caf50;
    color: white;
}

.cgc-status-full {
    background-color: #f44336;
    color: white;
}

.cgc-status-available {
    background-color: #2196f3;
    color: white;
}

.cgc-status-canceled {
    background-color: #9e9e9e;
    color: white;
}

/* Calendar day gig background colors based on status */
.cgc-day-gig-claimed {
    background-color: rgba(76, 175, 80, 0.15);
    border-left: 3px solid #4caf50;
}

.cgc-day-gig-full {
    background-color: rgba(244, 67, 54, 0.15);
    border-left: 3px solid #f44336;
}

.cgc-day-gig-canceled {
    background-color: rgba(158, 158, 158, 0.15);
    border-left: 3px solid #9e9e9e;
    opacity: 0.7;
}

.cgc-day-gig-available {
    background-color: rgba(33, 150, 243, 0.15);
    border-left: 3px solid #2196f3;
}

/* Adjust layout for status indicators */
.cgc-calendar-day-gig {
    min-width: 40px;
    padding-left: 8px;
    position: relative;
}

.cgc-day-gig-link {
    margin-top: 3px;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cgc-day-gig-status {
        font-size: 6px;
        padding: 1px 3px;
    }
}

/* Event Details styling */
.event-details-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.event-details-display th,
.event-details-display td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.event-details-display th {
    background-color: #f5f5f5;
    font-weight: bold;
    width: 200px;
}

/* Comments Section Styles */
.cgc-comments-section {
    margin-top: 30px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.cgc-comments-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.cgc-no-comments {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cgc-comment {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.cgc-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.cgc-comment-author {
    font-weight: bold;
    color: #333;
}

.cgc-admin-badge {
    background: #007cba;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
}

.cgc-comment-date {
    color: #666;
    font-size: 12px;
    margin-left: auto;
}

.cgc-comment-content {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333;
}

.cgc-comment-actions {
    display: flex;
    gap: 10px;
}

.cgc-reply-button,
.cgc-delete-comment {
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
}

.cgc-reply-button:hover,
.cgc-delete-comment:hover {
    color: #005a87;
}

.cgc-replies {
    margin-top: 15px;
    margin-left: 20px;
    border-left: 2px solid #ddd;
    padding-left: 15px;
}

.cgc-replies .cgc-comment {
    background: #fff;
    border-color: #ddd;
}

.cgc-reply-form-container {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cgc-comment-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

.cgc-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.cgc-cancel-reply {
    background: #f1f1f1;
    border: 1px solid #ccc;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.cgc-cancel-reply:hover {
    background: #e1e1e1;
}

.cgc-submit-comment,
.cgc-submit-reply {
    background: #007cba;
    border: 1px solid #005a87;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.cgc-submit-comment:hover,
.cgc-submit-reply:hover {
    background: #005a87;
}

.cgc-add-comment-section {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

/* Mobile optimizations for comments */
@media (max-width: 768px) {
    .cgc-comments-section {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .cgc-comment {
        padding: 10px;
    }
    
    .cgc-replies {
        margin-left: 10px;
        padding-left: 10px;
    }
    
    .cgc-comment-form textarea {
        min-height: 50px;
    }
    
    .cgc-form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cgc-submit-comment,
    .cgc-submit-reply,
    .cgc-cancel-reply {
        width: 100%;
        text-align: center;
    }
}