/**
 * PCP Collaboration - Admin Styles
 */

/* Statistics Cards */
.pcp-collab-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pcp-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pcp-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
}

.pcp-stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Table Wrapper */
.pcp-collab-table-wrap {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-top: 30px;
}

.pcp-collab-table-wrap h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* Status Badges */
.pcp-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pcp-status-active {
    background: #d1fae5;
    color: #065f46;
}

.pcp-status-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Settings Sections */
.pcp-settings-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.pcp-settings-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 18px;
    font-weight: 600;
}

/* Modal Styles (for frontend, but included here too) */
.pcp-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pcp-modal-content {
    background: white !important;
    border-radius: 12px !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
    animation: slideUp 0.3s ease;
    position: relative !important;
    margin: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pcp-modal-header {
    padding: 24px 24px 16px !important;
    border-bottom: 2px solid #e5e7eb !important;
    background: #f9fafb;
}

.pcp-modal-header h3 {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    line-height: 1.3 !important;
}

.pcp-modal-body {
    padding: 24px !important;
    line-height: 1.6 !important;
}

.pcp-modal-body > p {
    margin-bottom: 20px !important;
    font-size: 15px !important;
    color: #374151 !important;
}

.pcp-warning-box {
    background: #fef3c7 !important;
    border-left: 4px solid #f59e0b !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    border-radius: 6px !important;
}

.pcp-warning-box:last-of-type {
    margin-bottom: 0 !important;
}

.pcp-warning-box strong {
    display: block !important;
    margin-bottom: 10px !important;
    color: #92400e !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.pcp-warning-box ul {
    margin: 8px 0 0 0 !important;
    padding-left: 24px !important;
    list-style: disc !important;
}

.pcp-warning-box li {
    color: #78350f !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.pcp-modal-footer {
    padding: 16px 24px !important;
    border-top: 2px solid #e5e7eb !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    background: #f9fafb !important;
    border-radius: 0 0 12px 12px !important;
}

/* Messages */
.pcp-collab-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-weight: 500;
}

.pcp-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.pcp-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Responsive */
@media (max-width: 782px) {
    .pcp-collab-stats {
        grid-template-columns: 1fr;
    }
    
    .pcp-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .pcp-modal-body {
        padding: 16px;
    }
}