/* ========================================
   PARTICIPANTS - Cards, Lists, Items
   ======================================== */

/* Style for empty participants message */
.participants-empty-text {
    color: #e2e8f0;
    font-weight: 700;
    opacity: 0.95;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

/* Participants Card Full Width */
.participants-card-full-width {
    padding: 24px; /* slightly reduced to bring content up/left */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.change-date-range-container {
    text-align: center;
    margin: 30px 0;
}

.change-date-range-container .btn {
    min-width: 300px;
    height: var(--control-height);
    padding: 0 40px;
}

.instructions {
    background: rgba(240, 147, 251, 0.05);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-pink);
}

.instructions ul {
    margin-left: 20px;
}

.instructions li {
    margin: 10px 0;
    color: var(--text-secondary);
}

/* Participant Elements */
.participant-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 6px;
}

.participant-box {
    width: 11px;
    height: 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.participant-box:hover {
    transform: scale(1.2);
}

.participant-box.empty {
    background: rgb(35, 35, 55);
}

.participant-box.unavailable::after {
    content: '×';
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fc8181;
    font-weight: bold;
}

/* Participants List */
#participantsList {
    margin-bottom: 20px;
}

.participant-item {
    padding: 15px 20px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.participant-item:hover {
    background: rgb(35, 35, 55);
    transform: translateX(5px);
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05em;
}

.participant-email {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 4px;
}

.participant-status {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-submitted {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.4);
}

.status-pending {
    background: rgba(252, 129, 129, 0.2);
    color: #fc8181;
    border: 1px solid rgba(252, 129, 129, 0.4);
}

.remove-btn {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    margin-left: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    transform: scale(1.05);
}

.participant-submit-btn {
    white-space: nowrap;
    margin-left: 15px;
    padding: 12px 16px;
    font-size: 15px;
    height: auto;
    line-height: 1;
}

/* Participants List */
#participantsList {
    margin-bottom: 20px;
}

.participant-item {
    padding: 15px 20px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.participant-item:hover {
    background: rgb(35, 35, 55);
    transform: translateX(5px);
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05em;
}

.participant-email {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 4px;
}

.participant-status {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-submitted {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.4);
}

.status-pending {
    background: rgba(252, 129, 129, 0.2);
    color: #fc8181;
    border: 1px solid rgba(252, 129, 129, 0.4);
}

.remove-btn {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    margin-left: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    transform: scale(1.05);
}

/* Participants Grid (Admin Page - Compact Cards) */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.participants-grid .participant-item {
    padding: 12px 16px;
    margin: 0;
    background: rgb(35, 35, 55);
    backdrop-filter: none;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 4px solid;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.participants-grid .participant-item:hover {
    background: rgb(40, 40, 60);
    transform: translateY(-3px);
    box-shadow: 0 8px 4px rgba(0, 0, 0, 0.3);
}

.participants-grid .participant-info {
    width: 100%;
    margin-bottom: 10px;
    min-height: var(--control-height);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.participants-grid .participant-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1.3;
    word-wrap: break-word;
    text-align: left;
}

.participants-grid .participant-email {
    font-size: 13px;
    color: var(--text-secondary);
    word-wrap: break-word;
    line-height: 1.3;
    text-align: left;
    font-weight: 400;
}

.participants-grid .remove-btn {
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
}

/* Participants Card Full Width */
.participants-card-full-width {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.participants-card-full-width:hover {
    background: rgb(35, 35, 55);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Participant Grid */
@media (max-width: 1400px) {
    .participants-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .participants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .participants-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .participant-add-form {
        flex-direction: column;
    }

    .form-group-inline {
        width: 100%;
    }

    .participant-add-btn {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .participants-grid {
        grid-template-columns: 1fr;
    }
}

/* Participant Links */
.participant-links {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.participant-links h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
}

.link-item {
    margin: 15px 0;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.link-item:hover {
    background: rgb(35, 35, 55);
    transform: translateX(5px);
}

.link-url {
    color: var(--accent-purple);
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-left: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

/* ========================================
   SUBMISSION STATUS ICONS & INDICATORS
   ======================================== */

/* Submission status icons next to participant names in calendar cards */
.submission-icon-submitted,
.submission-icon-pending {
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
    line-height: 1;
}

.submission-icon-submitted {
    color: #48bb78;
}

.submission-icon-pending {
    color: #f6ad55;
}

/* Available dates indicator on calendar cards - MOVED TO cards.css */
/* See .available-dates-badge in cards.css for the new compact badge style */
/* Old .available-dates-indicator styles removed - no longer used */

