/**
 * Frontend Styles for Itinerant Preaching Coordination Plugin
 * Styles for both admin and fellow interfaces
 */

/* Reset and Base Styles */
.ipc-admin-container,
.ipc-fellow-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.ipc-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.ipc-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.ipc-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

/* Tab Navigation */
.ipc-tabs {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ipc-tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 500;
    color: #7f8c8d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.ipc-tab-button:hover {
    color: #3498db;
    background-color: #f8f9fa;
}

.ipc-tab-button.active {
    color: #2c3e50;
    border-bottom-color: #3498db;
    background-color: #fff;
}

/* Tab Content */
.ipc-tab-content {
    display: none;
}

.ipc-tab-content.active {
    display: block;
}

/* Dashboard Grid */
.ipc-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ipc-stat-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.ipc-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ipc-stat-card h3 {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ipc-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Section Headers */
.ipc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.ipc-section-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 0;
}

/* Buttons */
.ipc-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
    line-height: 1;
}

.ipc-button-primary {
    background-color: #3498db;
    color: white;
}

.ipc-button-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.ipc-button-secondary {
    background-color: #95a5a6;
    color: white;
}

.ipc-button-secondary:hover {
    background-color: #7f8c8d;
}

.ipc-button-danger {
    background-color: #e74c3c;
    color: white;
}

.ipc-button-danger:hover {
    background-color: #c0392b;
}

.ipc-button-success {
    background-color: #27ae60;
    color: white;
}

.ipc-button-success:hover {
    background-color: #229954;
}

.ipc-button-danger {
    background-color: #e74c3c;
    color: white;
}

.ipc-button-danger:hover {
    background-color: #c0392b;
}

.ipc-button-small {
    padding: 6px 16px;
    font-size: 0.9rem;
    min-width: auto;
}

.ipc-button-view {
  background-color: #27ae60;
  color: #fff;
}
.ipc-button-view:hover {
  background-color: #229954;
}

/* Tables */
.ipc-table-container {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ipc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ipc-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid #e1e5e9;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ipc-table td {
    padding: 0px 12px;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1;
}

.ipc-table tbody tr:hover {
    background-color: #f8f9fa;
}

.ipc-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.ipc-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ipc-badge-closed {
    background-color: #6c757d;
    color: #fff;
}

.ipc-status-open {
    background-color: #d4edda;
    color: #155724;
}

.ipc-status-matched {
    background-color: #fff3cd;
    color: #856404;
}

.ipc-status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.ipc-status-pending {
    background-color: #f8d7da;
    color: #721c24;
}

.ipc-status-active {
    background-color: #d4edda;
    color: #155724;
}

/* Modals */
.ipc-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    padding: 20px;
    box-sizing: border-box;
}

.ipc-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.ipc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.ipc-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.ipc-modal-close {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7f8c8d;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.ipc-modal-close:hover {
    color: #e74c3c;
}

.ipc-modal-body {
    padding: 30px;
}

.ipc-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e1e5e9;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Forms */
.ipc-form {
    max-width: 100%;
    padding: 30px;
}

.ipc-form-group {
    margin-bottom: 25px;
}

.ipc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.ipc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.ipc-form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
}

.ipc-form-group label:has(input[type="checkbox"]) input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: auto;
}

/* Form groups with only checkboxes should not take full width in rows */
.ipc-form-row .ipc-form-group:has(label:has(input[type="checkbox"])) {
    display: flex;
    align-items: center;
}

.ipc-form-group input,
.ipc-form-group select,
.ipc-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.ipc-form-group input:focus,
.ipc-form-group select:focus,
.ipc-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ipc-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.ipc-form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.ipc-form-help {
    color: #3498db !important;
    font-style: italic;
}

.ipc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e1e5e9;
}

/* Opportunity Details Styles */
.ipc-opportunity-details {
    padding: 20px 0;
}

.ipc-detail-row {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ipc-detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ipc-detail-row strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 120px;
}

.ipc-warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.ipc-warning-box p {
    margin: 5px 0;
    color: #856404;
}

/* Archive Section Styles */
.ipc-archive-section {
    margin-top: 30px;
    border-top: 2px solid #e1e5e9;
    padding-top: 20px;
}

.ipc-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ipc-archive-header h4 {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
}

.ipc-archive-content {
    background-color: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 15px;
}

.ipc-archive-content .ipc-table-container {
    margin: 0;
}

.ipc-archive-content table {
    background-color: #fff;
}

.ipc-archive-content .ipc-action-buttons .ipc-button {
    opacity: 0.7;
}

.ipc-archive-content .ipc-action-buttons .ipc-button:hover {
    opacity: 1;
}

/* Opportunities Accordion */
.ipc-opportunities-accordion {
    margin-top: 15px;
}

.ipc-opportunity-accordion-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ipc-opportunity-accordion-header {
    padding: 6px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
    transition: background-color 0.2s;
}

.ipc-opportunity-accordion-header:hover {
    background: #e9ecef;
}

.ipc-opportunity-accordion-header.active {
    background: #e3f2fd;
    border-radius: 6px 6px 0 0;
}

.ipc-opportunity-header-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ipc-opportunity-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px 0 !important;
}

.ipc-opportunity-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
    margin: 0 0 5px 0;
}

.ipc-opportunity-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ipc-opportunity-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ipc-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.ipc-badge-short-notice {
    background: #ffebee;
    color: #c62828;
}

.ipc-badge-recurring {
    background: #e8f5e8;
    color: #2e7d32;
}

.ipc-badge-status {
    background: #e3f2fd;
    color: #1976d2;
}

.ipc-badge-status-pending {
    background: #fff3cd;
    color: #856404;
}

.ipc-badge-status-interested {
    background: #d1ecf1;
    color: #0c5460;
}

.ipc-badge-status-available {
    background: #d4edda;
    color: #155724;
}

.ipc-badge-status-not-this-time {
    background: #f8d7da;
    color: #721c24;
}

.ipc-opportunity-accordion-content {
    padding: 0;
    display: none;
}

.ipc-opportunity-accordion-content.active {
    display: block;
}

.ipc-opportunity-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: #fff;
}

.ipc-opportunity-detail-section {
    font-size: 13px;
}

.ipc-opportunity-detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.ipc-opportunity-detail-section p {
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: #555;
}

.ipc-opportunity-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ipc-opportunity-actions .ipc-button {
    font-size: 12px;
    padding: 6px 12px;
}

.ipc-chevron {
    transition: transform 0.2s;
    font-size: 14px;
    color: #666;
}

.ipc-chevron.active {
    transform: rotate(180deg);
}

/* Fellow Selection Section */
.ipc-fellow-selection-section {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.ipc-fellow-selection-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.ipc-selection-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ipc-group-selection h5,
.ipc-individual-selection h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.ipc-group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.ipc-group-tag {
    padding: 6px 12px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ipc-group-tag:hover {
    background: #bbdefb;
}

.ipc-group-tag.selected {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.ipc-fellow-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.ipc-fellow-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ipc-fellow-item:hover {
    background: #f5f5f5;
}

.ipc-fellow-item:last-child {
    border-bottom: none;
}

.ipc-fellow-item input[type="checkbox"] {
    margin: 0;
}

.ipc-fellow-item .fellow-name {
    font-weight: 500;
    color: #333;
}

.ipc-fellow-item .fellow-tags {
    font-size: 11px;
    color: #666;
    margin-left: auto;
}

.ipc-selection-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ipc-selection-summary p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.ipc-selection-summary button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Response Status Section */
.ipc-response-status-section {
    padding: 20px;
    background: #f0f8ff;
    border-top: 1px solid #ddd;
}

.ipc-response-status-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.ipc-response-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ipc-response-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ipc-stat-item {
    font-size: 13px;
    color: #555;
}

.ipc-stat-item strong {
    color: #333;
}

.ipc-responses-list {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.ipc-response-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ipc-response-item:last-child {
    border-bottom: none;
}

.ipc-response-fellow {
    font-weight: 500;
    color: #333;
}

.ipc-response-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.ipc-response-status.pending {
    background: #fff3cd;
    color: #856404;
}

.ipc-response-status.interested {
    background: #d1ecf1;
    color: #0c5460;
}

.ipc-response-status.available {
    background: #d4edda;
    color: #155724;
}

.ipc-response-status.not_this_time {
    background: #f8d7da;
    color: #721c24;
}

.ipc-response-date {
    font-size: 11px;
    color: #666;
    margin-left: 10px;
}

/* Fellow Opportunities Specific Styles */
.ipc-opportunity-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.ipc-opportunity-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ipc-opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ipc-opportunity-header h3 {
    margin: 0;
    color: #2c3e50;
    flex: 1;
    min-width: 200px;
}

.ipc-opportunity-date {
    color: #7f8c8d;
    font-weight: 500;
    white-space: nowrap;
}

.ipc-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ipc-badge-urgent {
    background-color: #e74c3c;
    color: white;
}

.ipc-opportunity-details {
    margin-bottom: 20px;
}

.ipc-opportunity-details p {
    margin: 8px 0;
    color: #555;
}

.ipc-opportunity-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ipc-filters {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ipc-filter-group {
    display: flex;
    flex-direction: column;
}

.ipc-filter-group label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.ipc-filter-group select,
.ipc-filter-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Opportunity Cards */
.ipc-opportunities-list {
    display: grid;
    gap: 20px;
}

.ipc-opportunity-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ipc-opportunity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ipc-opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ipc-opportunity-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.ipc-opportunity-church {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 5px;
}

.ipc-opportunity-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.ipc-opportunity-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ipc-opportunity-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Resource Hub */
.ipc-resource-hub {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e1e5e9;
}

.ipc-resource-hub h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.ipc-resource-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.ipc-resource-category {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ipc-resource-category h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.ipc-resource-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ipc-resource-category li {
    margin-bottom: 8px;
}

.ipc-resource-category a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ipc-resource-category a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Fellow Stats */
.ipc-fellow-stats {
    margin-top: 40px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ipc-fellow-stats h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.ipc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.ipc-stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.ipc-stat-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.ipc-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Alerts and Banners */
.ipc-alert,
.ipc-banner {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.ipc-alert-urgent {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ipc-banner-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.ipc-alert-content,
.ipc-banner-content {
    flex: 1;
}

.ipc-alert-content h4,
.ipc-banner-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.ipc-alert-content p,
.ipc-banner-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Loading States */
.ipc-loading,
.ipc-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #7f8c8d;
}

.ipc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.9);
    z-index: 9999;
}

.ipc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e1e5e9;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ipc-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.ipc-no-results-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Notifications */
.ipc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: notificationSlideIn 0.3s ease;
}

.ipc-notification-success {
    background-color: #27ae60;
}

.ipc-notification-error {
    background-color: #e74c3c;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ipc-admin-container,
    .ipc-fellow-container {
        padding: 15px;
    }
    
    .ipc-header h1 {
        font-size: 2rem;
    }
    
    .ipc-tabs {
        flex-direction: column;
    }
    
    .ipc-tab-button {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .ipc-section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ipc-form-row {
        grid-template-columns: 1fr;
    }
    
    .ipc-filters {
        grid-template-columns: 1fr;
    }
    
    .ipc-opportunity-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ipc-opportunity-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .ipc-modal {
        padding: 10px;
    }
    
    .ipc-modal-content {
        width: 100%;
        margin: 5% auto;
        max-width: none;
    }
    
    .ipc-form-actions {
        flex-direction: column;
    }
    
    .ipc-alert,
    .ipc-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ipc-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .ipc-resource-categories {
        grid-template-columns: 1fr;
    }
    
    .ipc-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Form sections for edit fellow modal - information display style */
.ipc-form-section {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ipc-form-section h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #007cba;
    padding-bottom: 4px;
}

/* Readonly field styles - clean information display */
.ipc-readonly-field {
    padding: 4px 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    min-height: auto;
    display: block;
    color: #212529;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.ipc-readonly-field:empty::before {
    content: "Not specified";
    color: #adb5bd;
    font-style: italic;
    font-weight: normal;
}

/* Label styles for readonly fields - clean display */
.ipc-form-section .ipc-form-group label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Compact form groups */
.ipc-form-section .ipc-form-group {
    margin-bottom: 12px;
}

.ipc-form-section .ipc-form-row {
    margin-bottom: 8px;
}

.ipc-form-section .ipc-form-row .ipc-form-group {
    margin-bottom: 12px;
}

/* Unified Fellow List - Match Notes */
.ipc-match-notes-unified {
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 2px;
    padding: 3px 6px;
    background: #e8f5e8;
    border-left: 2px solid #28a745;
    border-radius: 2px;
    max-width: 250px;
    word-wrap: break-word;
    line-height: 1.3;
}

/* Unified Fellow Management Section */
.ipc-fellow-management-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ipc-fellow-management-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.ipc-unified-fellow-list {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #ffffff;
}

.ipc-unified-fellow-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    min-height: 40px;
}

.ipc-unified-fellow-item:last-child {
    border-bottom: none;
}

.ipc-unified-fellow-item:hover {
    background-color: #f8f9fa;
}

.ipc-fellow-checkbox {
    margin-right: 15px;
    flex-shrink: 0;
}

.ipc-fellow-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.ipc-fellow-info {
    flex: 1;
    min-width: 0;
}

.ipc-fellow-name {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
    line-height: 1.3;
}

.ipc-matched-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #28a745;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.ipc-fellow-matched {
    background: #e8f6ee;
}

.ipc-fellow-tags {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    font-weight: normal;
}

.ipc-fellow-status {
    flex-shrink: 0;
    text-align: right;
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.ipc-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ipc-status-not-sent {
    background-color: #e9ecef;
    color: #6c757d;
}

.ipc-status-pending {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 700;
}

.ipc-status-interested {
    background-color: #d1ecf1;
    color: #0c5460;
    font-weight: 700;
}

.ipc-status-available {
    background-color: #d4edda;
    color: #155724;
    font-weight: 700;
}

.ipc-status-not-this-time {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 700;
}

.ipc-response-date {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

.ipc-no-fellows {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Override theme margins for plugin headings */
.ipc-opportunity-accordion-content h4,
.ipc-fellow-management-section h4,
.ipc-form-section h4 {
    margin: 0 !important;
}

/* Fellow Assignments */
.ipc-assignment-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.ipc-assignment-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ipc-assignment-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.ipc-assignment-accordion-header:hover {
    background: #e9ecef;
}

.ipc-assignment-header-info {
    flex: 1;
}

.ipc-assignment-title {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.ipc-assignment-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ipc-assignment-meta span {
    color: #6c757d;
    font-size: 14px;
}

.ipc-assignment-meta strong {
    color: #495057;
}

.ipc-assignment-actions {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}

.ipc-chevron {
    color: #6c757d;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.ipc-assignment-full-details {
    padding: 20px;
}

.ipc-detail-section {
    margin-bottom: 20px;
    font-size: 13px;
}

.ipc-detail-section h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.ipc-detail-row {
    margin: 0 0 8px 0;
    color: #555;
    line-height: 1.4;
}

.ipc-assignment-actions-expanded {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ipc-assignment-info {
    flex: 1;
}

.ipc-assignment-info p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}

.ipc-assignment-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.ipc-fellow-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.ipc-fellow-tabs .ipc-tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.ipc-fellow-tabs .ipc-tab-button.active {
    color: #007cba;
    border-bottom-color: #007cba;
}

.ipc-fellow-tabs .ipc-tab-button:hover {
    color: #007cba;
}

.ipc-tab-content {
    display: none;
}

.ipc-tab-content.active {
    display: block;
}

.ipc-assignments-header {
    margin-bottom: 20px;
}

.ipc-assignments-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.ipc-assignments-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.ipc-matched-name {
  margin-left: 10px;
  color: #28a745;
  font-weight: 700;
}

.entry-content h5 {
  margin-top: 8px !important;
}

.ipc-reopen-note {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 10px 0 12px 0;
  font-size: 13px;
}

/* Match Preview Modal Styling */
.ipc-match-preview {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.ipc-match-preview h4 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.ipc-match-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.ipc-preview-section {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  border: 1px solid #e9ecef;
}

.ipc-preview-section h5 {
  margin: 0 0 12px 0;
  color: #495057;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ipc-preview-section h5 i {
  color: #3498db;
  width: 16px;
}

.ipc-preview-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ipc-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
}

.ipc-preview-row:last-child {
  border-bottom: none;
}

.ipc-preview-row strong {
  color: #495057;
  font-weight: 600;
  min-width: 120px;
}

.ipc-preview-row:not(:has(strong)) {
  justify-content: flex-start;
}

/* Compatibility Section */
.ipc-preview-section.ipc-compatibility-section {
  grid-column: 1 / -1;
  background: #fff3cd;
  border-color: #ffeaa7;
}

.ipc-preview-section.ipc-compatibility-section h5 {
  color: #856404;
}

.ipc-preview-section.ipc-compatibility-section h5 i {
  color: #f39c12;
}

.ipc-compatibility-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ffeaa7;
}

.ipc-compatibility-row:last-child {
  border-bottom: none;
}

.ipc-compatibility-label {
  font-weight: 600;
  color: #856404;
  font-size: 0.9rem;
}

.ipc-compatibility-status {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.ipc-compatibility-match {
  color: #27ae60;
}

.ipc-compatibility-mismatch {
  color: #e74c3c;
}

.ipc-compatibility-warning {
  color: #f39c12;
}

.ipc-compatibility-value {
  font-size: 0.9rem;
  color: #495057;
  text-align: right;
}

.ipc-compatibility-value.match {
  color: #27ae60;
  font-weight: 600;
}

.ipc-compatibility-value.mismatch {
  color: #e74c3c;
  font-weight: 600;
}

.ipc-compatibility-value.warning {
  color: #f39c12;
  font-weight: 600;
}

/* Assignment expanded actions */
.ipc-assignment-actions-expanded {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ipc-assignment-actions-expanded .ipc-button {
  margin: 0;
}

/* Invitation Response Section */
.ipc-invitation-response-section {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 5px;
}

.ipc-invitation-response-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.ipc-current-response {
  margin-bottom: 15px;
}

.ipc-current-response p {
  margin: 5px 0;
  font-size: 13px;
  color: #555;
}

.ipc-response-buttons p {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #555;
  font-weight: 600;
}

.ipc-response-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ipc-response-btn {
  display: inline-block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.ipc-response-btn:hover {
  color: white;
  text-decoration: none;
  opacity: 0.9;
}

.ipc-response-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ipc-response-interested {
  background-color: #28a745;
}

.ipc-response-available {
  background-color: #007cba;
}

.ipc-response-not-this-time {
  background-color: #dc3545;
}

/* Notification popup */
.ipc-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  z-index: 9999;
  display: none;
  max-width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ipc-notification-success {
  background-color: #28a745;
}

/* Google Places Autocomplete Element Styling */
gmp-place-autocomplete {
  display: block;
  width: 100%;
  min-height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.4;
  background-color: #fff;
  color: #333;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

gmp-place-autocomplete:focus {
  border-color: #007cba;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

gmp-place-autocomplete::part(input) {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: inherit;
  font-family: inherit;
  color: #333 !important;
}

gmp-place-autocomplete::part(input)::placeholder {
  color: #999 !important;
}

gmp-place-autocomplete::part(input):focus {
  color: #333 !important;
}

/* Warning notice styling */
.ipc-notice {
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.ipc-notice-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.ipc-notice-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.ipc-notification-error {
  background-color: #dc3545;
}

.ipc-notification-warning {
  background-color: #ffc107;
  color: #000;
}
