/*
 * Plugin Name: TTFPA Event Organizer Styles
 * Description: Custom styles for the TTFPA Event Organizer plugin.
 * Version: 4.2.9
 */

.pagelayer-wposts-post {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.pagelayer-posts-container {
    text-align: var(--bs-body-text-align);
    font-family: Poppins;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: #555555ff;
    box-sizing: border-box; /* This is usually a default browser style, but good to include if explicitly desired */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.ttfpa-countdown {
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    margin: 10px 0 15px;
    color: #fc5b62;
    font-family: Arial, sans-serif;
}
.ttfpa-countdown .to-go-box {
    display: inline-block;
    background: #fc5b62;
    color: white;
    font-weight: bold;
    padding: 3px 15px;
    border-radius: 0 25px 25px 0;
    margin-top: 8px;
    font-size: 18px;
}
.ttfpa-event-tasks, .ttfpa-event-info, .ttfpa-participants-list {
    margin-top: 25px;
    padding: 15px;
    border: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 6px;
}
.ttfpa-task-list, .ttfpa-participants-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ttfpa-task-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
}
.ttfpa-task-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.ttfpa-task-item h4 {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    color: #333;
}
.ttfpa-task-details-line {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}
.ttfpa-apply-form-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}
.ttfpa-shortcode-box {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}
.ttfpa-participation-count {
    font-weight: bold;
    color: #0073aa;
    margin-top: 10px;
    font-size: 1.1em;
}
.ttfpa-notification-icon {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #5F9EA0;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    min-width: 120px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.ttfpa-notification-icon:hover {
    background-color: #4A8587;
    transform: translateY(-50%) scale(1.05);
}
.ttfpa-notification-icon .dashicons {
    line-height: 1;
    font-size: 20px;
}
.ttfpa-notification-icon .ttfpa-notification-text {
    margin-left: 8px;
    font-size: 14px;
    white-space: nowrap;
}
.ttfpa-nav-tab-wrapper {
    border-bottom: 1px solid #ccc;
    margin: 0 0 20px;
    padding: 0;
}
.ttfpa-nav-tab {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px -1px 0;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    color: #555;
    border: 1px solid #ccc;
    border-bottom: 0;
    background: #f0f0f0;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.ttfpa-nav-tab.nav-tab-active {
    background: #fff;
    border-bottom: 1px solid transparent;
    color: #000;
}
.ttfpa-tab-content {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 0 0 4px 4px;
}
.ttfpa-task-status-select {
    margin-left: 10px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.9em;
}
.ttfpa-task-status-text {
    margin-left: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}
/* Status Colors */
.ttfpa-task-status-text.Pending {
    color: #f0ad4e; /* Orange */
    background-color: #fff8e1;
}
.ttfpa-task-status-text.InProgress {
    color: #5bc0de; /* Light Blue */
    background-color: #e1f7ff;
}
.ttfpa-task-status-text.Completed {
    color: #5cb85c; /* Green */
    background-color: #e6ffe6;
}
.ttfpa-task-assigned-label {
    margin-left: 20px;
    font-weight: normal;
    color: #555;
}
.ttfpa-task-assigned-text {
    font-weight: bold;
    margin-left: 5px;
    color: #0073aa;
}
.ttfpa-add-edit-comment-btn {
    background: #008CBA;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    margin-left: auto; /* Push to the right */
    display: flex;
    align-items: center;
    gap: 5px;
}
.ttfpa-add-edit-comment-btn:hover {
    background: #0073aa;
}
.ttfpa-comment-form {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    width: 100%; /* Ensure it takes full width */
    box-sizing: border-box; /* Include padding/border in width */
}
.ttfpa-comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.ttfpa-comment-form button {
    font-size: 0.85em;
    padding: 6px 12px;
}

.ttfpa-participants-list ul {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}
.ttfpa-participants-list .ttfpa-verified-checkbox {
    transform: scale(1.2); /* Make checkbox slightly larger */
}
/* Styles for new remove checkbox */
.ttfpa-remove-participant-checkbox {
    transform: scale(1.2); /* Make checkbox slightly larger */
    margin-left: 5px; /* Spacing from 'Remove' text if added */
}
/* New styles for admin controls on frontend */
.ttfpa-assign-user-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.9em;
    margin-left: 10px; /* Spacing from 'Coordinator:' text */
}
/* Custom confirmation dialog styles */
.ttfpa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.ttfpa-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}
.ttfpa-modal-content h3 {
    margin-top: 0;
    color: #333;
}
.ttfpa-modal-content p {
    margin-bottom: 20px;
    color: #555;
}
.ttfpa-modal-buttons button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 10px;
}
.ttfpa-modal-buttons button.cancel-btn {
    background: #ccc;
    color: #333;
}
.ttfpa-modal-buttons button:hover {
    opacity: 0.9;
}

/* Custom styles for participation status */
.ttfpa-task-status-text[data-status="Pending"] {
    color: gray;
    font-weight: bold;
}

.ttfpa-task-status-text[data-status="Inprogress"] {
    color: blue;
    font-weight: bold;
}

.ttfpa-task-status-text[data-status="Completed"] {
    color: green;
    font-weight: bold;
}