/* Dashboard Page Styles */

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--primary-dark, #1a3a5c);
    font-size: 1.25rem;
    margin: 0;
}

.btn-create-new {
    color: var(--accent-orange, #ff8c42);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-create-new:hover {
    background: rgba(255, 140, 66, 0.1);
}

/* Crew Info Row */
.crew-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.crew-logo-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: white;
}

.crew-info-row h3 {
    color: var(--primary-dark, #1a3a5c);
    margin: 0;
    font-size: 1.125rem;
}

.crew-city {
    color: var(--text-light, #666);
    margin: 2px 0 0;
    font-size: 0.875rem;
}

.upload-hint {
    color: var(--text-light, #666);
    font-size: 0.8125rem;
    font-style: italic;
}

/* Invite Item */
.invite-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.invite-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.invite-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.invite-item-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.invite-item-info h4 {
    margin: 0 0 4px;
    color: var(--primary-dark, #1a3a5c);
    font-size: 1rem;
}

.invite-item-date {
    margin: 0;
    color: var(--text-light, #666);
    font-size: 0.8125rem;
}

.invite-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.status-active {
    background: #dcfce7;
    color: #16a34a;
}

.status-expired {
    background: #f3f4f6;
    color: #9ca3af;
}

.invite-item-counts {
    display: flex;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.count-accept {
    color: #22c55e;
}

.count-decline {
    color: #ef4444;
}

.expand-icon {
    color: var(--text-light, #666);
    font-size: 0.75rem;
    transition: transform 0.2s;
}

/* Invite Details */
.invite-item-details {
    padding: 0 16px 16px;
    border-top: 1px solid #e5e7eb;
}

.invite-detail-desc,
.invite-detail-mp,
.invite-detail-route {
    margin: 12px 0 4px;
    color: var(--text-dark, #333);
    font-size: 0.875rem;
}

.invite-detail-mp,
.invite-detail-route {
    color: var(--text-light, #666);
}

/* Responses Section */
.responses-section {
    margin-top: 16px;
}

.responses-section h5 {
    margin: 0 0 10px;
    color: var(--primary-dark, #1a3a5c);
    font-size: 0.9375rem;
}

.response-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    font-size: 0.875rem;
}

.response-accepted {
    background: #f0fdf4;
}

.response-declined {
    background: #fef2f2;
}

.response-icon {
    font-size: 0.875rem;
    flex-shrink: 0;
}

.response-accepted .response-icon {
    color: #22c55e;
}

.response-declined .response-icon {
    color: #ef4444;
}

.response-name {
    flex: 1;
    color: var(--text-dark, #333);
}

.response-type {
    color: var(--text-light, #666);
    font-size: 0.75rem;
    text-transform: capitalize;
}

.no-responses {
    color: var(--text-light, #666);
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 12px;
}

/* Invite Item Actions */
.invite-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn-copy-small,
.btn-view-small {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
    text-align: center;
}

.btn-copy-small {
    background: var(--accent-orange, #ff8c42);
    color: white;
    border: none;
}

.btn-copy-small:hover {
    background: #e67a2e;
}

.btn-copy-small.copied {
    background: #22c55e;
}

.btn-view-small {
    background: transparent;
    color: var(--primary-dark, #1a3a5c);
    border: 2px solid #e5e7eb;
}

.btn-view-small:hover {
    border-color: var(--primary-dark, #1a3a5c);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 32px 16px;
}

.empty-state p {
    color: var(--text-light, #666);
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .invite-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .invite-item-meta {
        width: 100%;
        justify-content: space-between;
    }

    .invite-item-actions {
        flex-direction: column;
    }

    .crew-info-row {
        flex-direction: column;
        text-align: center;
    }
}
