/* Meeting Manager Styles */

.fc-jaas-meeting-manager {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.fc-jaas-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.fc-jaas-manager-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Buttons */
.fc-jaas-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fc-jaas-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fc-jaas-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.fc-jaas-btn-primary {
    background: #667eea;
    color: #fff;
}

.fc-jaas-btn-primary:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.fc-jaas-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.fc-jaas-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.fc-jaas-btn-danger {
    background: #dc3545;
    color: #fff;
    padding: 8px 12px;
}

.fc-jaas-btn-danger:hover:not(:disabled) {
    background: #c82333;
}

/* Modal */
.fc-jaas-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.fc-jaas-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.fc-jaas-modal-dialog {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fc-jaas-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.fc-jaas-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.fc-jaas-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    transition: color 0.2s;
}

.fc-jaas-modal-close:hover {
    color: #333;
}

.fc-jaas-modal-body {
    padding: 25px;
}

/* Form */
.fc-jaas-form-group {
    margin-bottom: 20px;
}

.fc-jaas-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.fc-jaas-form-group .required {
    color: #dc3545;
}

.fc-jaas-input,
.fc-jaas-textarea,
.fc-jaas-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.fc-jaas-input:focus,
.fc-jaas-textarea:focus,
.fc-jaas-select:focus {
    outline: none;
    border-color: #667eea;
}

.fc-jaas-textarea {
    resize: vertical;
    font-family: inherit;
}

.fc-jaas-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Sections */
.fc-jaas-upcoming-section,
.fc-jaas-past-section {
    margin: 30px 0;
}

.fc-jaas-upcoming-section h3,
.fc-jaas-past-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.fc-jaas-upcoming-section h3 .dashicons,
.fc-jaas-past-section h3 .dashicons {
    color: #667eea;
}

/* Empty State */
.fc-jaas-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.fc-jaas-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.fc-jaas-empty-state p {
    color: #666;
    font-size: 16px;
    margin: 0 0 20px 0;
}

/* Meeting Cards Grid */
.fc-jaas-meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.fc-jaas-meeting-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fc-jaas-meeting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.fc-jaas-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.fc-jaas-card-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
    flex: 1;
    line-height: 1.4;
}

.fc-jaas-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.fc-jaas-badge-scheduled {
    background: #e3f2fd;
    color: #1976d2;
}

.fc-jaas-badge-in_progress {
    background: #c8e6c9;
    color: #2e7d32;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.fc-jaas-badge-ended {
    background: #f5f5f5;
    color: #616161;
}

.fc-jaas-card-description {
    margin: 12px 0;
}

.fc-jaas-card-description p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.fc-jaas-card-meta {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.fc-jaas-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #666;
    font-size: 13px;
}

.fc-jaas-meta-item .dashicons {
    color: #667eea;
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.fc-jaas-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.fc-jaas-card-actions .fc-jaas-join-btn {
    flex: 1;
}

/* Past Meetings Table */
.fc-jaas-past-table {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.fc-jaas-past-table table {
    width: 100%;
    border-collapse: collapse;
}

.fc-jaas-past-table th,
.fc-jaas-past-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.fc-jaas-past-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-jaas-past-table tbody tr:hover {
    background: #f8f9fa;
}

.fc-jaas-past-table tbody tr:last-child td {
    border-bottom: none;
}

/* Messages */
.fc-jaas-message {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fc-jaas-message.success {
    border-left: 4px solid #4caf50;
}

.fc-jaas-message.error {
    border-left: 4px solid #f44336;
}

.fc-jaas-notice {
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.fc-jaas-notice-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .fc-jaas-manager-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .fc-jaas-meetings-grid {
        grid-template-columns: 1fr;
    }

    .fc-jaas-modal-dialog {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .fc-jaas-card-actions {
        flex-direction: column;
    }

    .fc-jaas-card-actions .fc-jaas-btn-danger {
        width: 100%;
    }

    .fc-jaas-form-actions {
        flex-direction: column;
    }

    .fc-jaas-form-actions .fc-jaas-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fc-jaas-manager-header h2 {
        font-size: 18px;
    }

    .fc-jaas-past-table {
        overflow-x: auto;
    }

    .fc-jaas-past-table th,
    .fc-jaas-past-table td {
        padding: 10px;
        font-size: 13px;
    }
}
