/**
 * Integration Platform - Public Styles
 */

:root {
    --ip-primary-color: #1e3a5f;
    --ip-secondary-color: #2e5a7f;
    --ip-accent: #3e7a9f;
    --ip-success: #28a745;
    --ip-warning: #ffc107;
    --ip-danger: #dc3545;
    --ip-light: #f8f9fa;
    --ip-dark: #343a40;
    --ip-border: #dee2e6;
    --ip-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --ip-radius: 8px;
}

/* Projects Wrapper */
.ip-projects-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Filters */
.ip-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--ip-light);
    border-radius: var(--ip-radius);
}

.ip-filter-group {
    flex: 1;
    min-width: 200px;
}

.ip-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--ip-primary-color);
    font-size: 13px;
}

.ip-filter-group select,
.ip-filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ip-border);
    border-radius: 6px;
    font-size: 14px;
}

.ip-filter-group select:focus,
.ip-filter-group input:focus {
    outline: none;
    border-color: var(--ip-primary-color);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

/* Projects Grid */
.ip-projects-grid {
    display: grid;
    gap: 25px;
}

.ip-projects-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.ip-projects-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.ip-projects-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .ip-projects-grid.columns-3,
    .ip-projects-grid.columns-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ip-projects-grid { grid-template-columns: 1fr; }
}

/* Project Card */
.ip-project-card {
    background: #fff;
    border-radius: var(--ip-radius);
    box-shadow: var(--ip-shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ip-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ip-project-image {
    height: 180px;
    overflow: hidden;
}

.ip-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ip-project-content {
    padding: 20px;
}

.ip-project-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--ip-light);
    color: var(--ip-dark);
    margin-bottom: 10px;
}

.ip-project-status.status-concept { background: #e3f2fd; color: #1565c0; }
.ip-project-status.status-preparation { background: #fff3e0; color: #ef6c00; }
.ip-project-status.status-appraisal { background: #fce4ec; color: #c2185b; }
.ip-project-status.status-approved { background: #e8f5e9; color: #2e7d32; }
.ip-project-status.status-implementation { background: #e0f7fa; color: #00838f; }
.ip-project-status.status-completed { background: #f3e5f5; color: #7b1fa2; }

.ip-project-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.ip-project-title a {
    color: var(--ip-primary-color);
    text-decoration: none;
}

.ip-project-title a:hover {
    color: var(--ip-secondary-color);
}

.ip-project-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.ip-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid var(--ip-border);
    border-bottom: 1px solid var(--ip-border);
}

.ip-meta-item {
    flex: 1;
    min-width: 100px;
}

.ip-meta-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.ip-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ip-dark);
}

.ip-financing-gap .ip-meta-value {
    color: var(--ip-danger);
}

.ip-project-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.ip-sector-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--ip-light);
    border-radius: 15px;
    font-size: 12px;
    color: var(--ip-secondary-color);
}

/* Buttons */
.ip-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.ip-btn-primary {
    background: var(--ip-primary-color);
    color: white;
}

.ip-btn-primary:hover {
    background: var(--ip-secondary-color);
    color: white;
}

.ip-btn-outline {
    background: transparent;
    border: 2px solid var(--ip-primary-color);
    color: var(--ip-primary-color);
}

.ip-btn-outline:hover {
    background: var(--ip-primary-color);
    color: white;
}

.ip-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Institutions Grid */
.ip-institutions-grid {
    display: grid;
    gap: 20px;
}

.ip-institutions-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.ip-institutions-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 480px) {
    .ip-institutions-grid { grid-template-columns: 1fr; }
}

.ip-institution-card {
    background: #fff;
    border-radius: var(--ip-radius);
    box-shadow: var(--ip-shadow);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.ip-institution-card:hover {
    transform: translateY(-3px);
}

.ip-institution-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ip-light);
}

.ip-institution-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ip-institution-name {
    margin: 0 0 10px;
    font-size: 16px;
}

.ip-institution-name .ip-acronym {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--ip-primary-color);
    margin-bottom: 5px;
}

.ip-institution-name a {
    color: var(--ip-dark);
    text-decoration: none;
    font-size: 14px;
}

.ip-headquarters {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.ip-headquarters .dashicons {
    font-size: 14px;
    vertical-align: middle;
    margin-right: 3px;
}

.ip-institution-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Documents List */
.ip-documents-list {
    max-width: 800px;
}

.ip-document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: var(--ip-radius);
    margin-bottom: 10px;
    box-shadow: var(--ip-shadow);
}

.ip-document-icon {
    width: 50px;
    height: 50px;
    background: var(--ip-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-document-icon .dashicons {
    font-size: 24px;
    color: var(--ip-primary-color);
}

.ip-document-info {
    flex: 1;
}

.ip-document-title {
    margin: 0 0 5px;
    font-size: 16px;
    color: var(--ip-dark);
}

.ip-document-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.ip-doc-date,
.ip-doc-lang,
.ip-doc-category {
    display: inline-block;
}

.ip-doc-lang {
    background: var(--ip-light);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Stats Grid */
.ip-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ip-stat-card {
    background: #fff;
    border-radius: var(--ip-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--ip-shadow);
    border-top: 4px solid var(--ip-primary-color);
}

.ip-stat-card .ip-stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--ip-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-stat-card .ip-stat-icon .dashicons {
    font-size: 28px;
    color: var(--ip-primary-color);
}

.ip-stat-card .ip-stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--ip-primary-color);
    margin-bottom: 5px;
}

.ip-stat-card .ip-stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

/* Intelligence Feed */
.ip-intelligence-feed {
    max-width: 800px;
}

.ip-intel-item {
    background: #fff;
    border-radius: var(--ip-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--ip-shadow);
    border-left: 4px solid var(--ip-primary-color);
}

.ip-intel-item.priority-urgent {
    border-left-color: var(--ip-danger);
    background: #fff5f5;
}

.ip-intel-item.priority-important {
    border-left-color: var(--ip-warning);
}

.ip-intel-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--ip-danger);
    color: white;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}

.ip-intel-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.ip-intel-title a {
    color: var(--ip-dark);
    text-decoration: none;
}

.ip-intel-title a:hover {
    color: var(--ip-primary-color);
}

.ip-intel-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.ip-intel-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.ip-intel-source a {
    color: var(--ip-secondary-color);
}

.ip-intel-type {
    background: var(--ip-light);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Calendar */
.ip-calendar-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

#ip-calendar {
    background: #fff;
    padding: 20px;
    border-radius: var(--ip-radius);
    box-shadow: var(--ip-shadow);
}

/* Map */
.ip-map-wrapper {
    display: flex;
    gap: 20px;
}

.ip-africa-map {
    flex: 1;
    min-height: 500px;
    background: var(--ip-light);
    border-radius: var(--ip-radius);
}

.ip-map-legend {
    width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: var(--ip-radius);
    box-shadow: var(--ip-shadow);
}

.ip-map-legend h4 {
    margin: 0 0 15px;
    color: var(--ip-primary-color);
}

.ip-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.ip-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--ip-primary-color);
}

/* Access Denied */
.ip-access-denied {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: var(--ip-radius);
    color: var(--ip-danger);
}

/* No Results */
.ip-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Widget Styles */
.widget .ip-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget .ip-widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--ip-border);
}

.widget .ip-widget-list li:last-child {
    border-bottom: none;
}

.widget .ip-widget-meta {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.widget .ip-widget-meetings li {
    padding: 12px 0;
}

.widget .ip-meeting-date,
.widget .ip-meeting-location {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* Loading State */
.ip-loading {
    text-align: center;
    padding: 40px;
}

.ip-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--ip-light);
    border-top-color: var(--ip-primary-color);
    border-radius: 50%;
    animation: ip-spin 0.8s linear infinite;
}

@keyframes ip-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */

.ip-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.ip-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ip-border);
}

.ip-welcome h1 {
    margin: 0 0 5px;
    color: var(--ip-primary-color);
    font-size: 28px;
}

.ip-welcome .ip-date {
    color: #666;
    margin: 0;
}

.ip-quick-actions {
    display: flex;
    gap: 10px;
}

.ip-quick-actions .ip-btn .dashicons {
    margin-right: 5px;
    vertical-align: middle;
}

/* Stats Row */
.ip-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .ip-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ip-stats-row {
        grid-template-columns: 1fr;
    }
}

.ip-stats-row .ip-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    text-align: left;
}

.ip-stats-row .ip-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ip-stats-row .ip-stat-icon.projects { background: #e3f2fd; }
.ip-stats-row .ip-stat-icon.projects .dashicons { color: #1565c0; }
.ip-stats-row .ip-stat-icon.institutions { background: #f3e5f5; }
.ip-stats-row .ip-stat-icon.institutions .dashicons { color: #7b1fa2; }
.ip-stats-row .ip-stat-icon.documents { background: #e8f5e9; }
.ip-stats-row .ip-stat-icon.documents .dashicons { color: #2e7d32; }
.ip-stats-row .ip-stat-icon.portfolio { background: #fff3e0; }
.ip-stats-row .ip-stat-icon.portfolio .dashicons { color: #ef6c00; }

.ip-stats-row .ip-stat-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.ip-stats-row .ip-stat-content {
    flex: 1;
}

.ip-stats-row .ip-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--ip-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.ip-stats-row .ip-stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
}

/* Dashboard Grid */
.ip-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .ip-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.ip-dashboard-section {
    background: #fff;
    border-radius: var(--ip-radius);
    box-shadow: var(--ip-shadow);
    overflow: hidden;
}

.ip-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--ip-light);
    border-bottom: 1px solid var(--ip-border);
}

.ip-section-header h2 {
    margin: 0;
    font-size: 16px;
    color: var(--ip-primary-color);
}

.ip-view-all {
    font-size: 13px;
    color: var(--ip-secondary-color);
    text-decoration: none;
}

.ip-view-all:hover {
    text-decoration: underline;
}

.ip-section-content {
    padding: 20px;
}

/* Data Table */
.ip-data-table {
    width: 100%;
    border-collapse: collapse;
}

.ip-data-table th,
.ip-data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--ip-border);
}

.ip-data-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
}

.ip-data-table td {
    font-size: 14px;
}

.ip-data-table tr:last-child td {
    border-bottom: none;
}

.ip-data-table a {
    color: var(--ip-primary-color);
    text-decoration: none;
}

.ip-data-table a:hover {
    text-decoration: underline;
}

.ip-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.ip-status-badge.status-concept { background: #e3f2fd; color: #1565c0; }
.ip-status-badge.status-preparation { background: #fff3e0; color: #ef6c00; }
.ip-status-badge.status-appraisal { background: #fce4ec; color: #c2185b; }
.ip-status-badge.status-approved { background: #e8f5e9; color: #2e7d32; }
.ip-status-badge.status-implementation { background: #e0f7fa; color: #00838f; }
.ip-status-badge.status-completed { background: #f3e5f5; color: #7b1fa2; }

.ip-gap-highlight {
    color: var(--ip-danger);
    font-weight: 600;
}

/* Meeting List */
.ip-meeting-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ip-meeting-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--ip-border);
}

.ip-meeting-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ip-meeting-date {
    width: 50px;
    text-align: center;
    background: var(--ip-primary-color);
    color: white;
    border-radius: 8px;
    padding: 8px;
    flex-shrink: 0;
}

.ip-meeting-day {
    display: block;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.ip-meeting-month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.ip-meeting-info h4 {
    margin: 0 0 5px;
    font-size: 15px;
}

.ip-meeting-info h4 a {
    color: var(--ip-dark);
    text-decoration: none;
}

.ip-meeting-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.ip-meeting-info .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 3px;
}

.ip-meeting-format {
    display: inline-block;
    padding: 2px 8px;
    background: var(--ip-light);
    border-radius: 4px;
    font-size: 11px;
    margin-left: 10px;
}

/* Intel List in Dashboard */
.ip-intel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ip-dashboard-section .ip-intel-item {
    padding: 12px 0;
    margin-bottom: 0;
    box-shadow: none;
    border-left: none;
    border-bottom: 1px solid var(--ip-border);
    border-radius: 0;
    background: transparent;
}

.ip-dashboard-section .ip-intel-item:last-child {
    border-bottom: none;
}

.ip-dashboard-section .ip-intel-item h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.ip-alert-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--ip-danger);
    color: white;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Doc List in Dashboard */
.ip-doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ip-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ip-border);
}

.ip-doc-item:last-child {
    border-bottom: none;
}

.ip-doc-item .ip-doc-icon {
    width: 40px;
    height: 40px;
    background: var(--ip-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ip-doc-item .ip-doc-icon .dashicons {
    font-size: 20px;
    color: var(--ip-primary-color);
}

.ip-doc-item .ip-doc-info {
    flex: 1;
    min-width: 0;
}

.ip-doc-item .ip-doc-info h4 {
    margin: 0 0 3px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-doc-item .ip-doc-info p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.ip-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ip-btn-icon .dashicons {
    margin: 0;
}

/* Charts Section */
.ip-chart-section {
    grid-column: 1 / -1;
}

.ip-charts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .ip-charts-row {
        grid-template-columns: 1fr;
    }
}

.ip-chart-container {
    background: var(--ip-light);
    padding: 20px;
    border-radius: var(--ip-radius);
}

.ip-chart-container h3 {
    margin: 0 0 15px;
    font-size: 14px;
    color: var(--ip-dark);
    text-align: center;
}

.ip-chart-container canvas {
    max-height: 250px;
}

/* No Data Message */
.ip-no-data {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}

/* Animation Classes */
.ip-animate-in {
    animation: ip-fade-in-up 0.5s ease-out forwards;
}

@keyframes ip-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calendar Styles */
.ip-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ip-calendar-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--ip-primary-color);
}

.ip-cal-prev,
.ip-cal-next {
    background: var(--ip-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--ip-primary-color);
    transition: background 0.3s;
}

.ip-cal-prev:hover,
.ip-cal-next:hover {
    background: var(--ip-primary-color);
    color: white;
}

.ip-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.ip-cal-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    padding: 10px 0;
    text-transform: uppercase;
}

.ip-cal-day {
    min-height: 80px;
    background: var(--ip-light);
    border-radius: 6px;
    padding: 8px;
    position: relative;
}

.ip-cal-day.ip-cal-empty {
    background: transparent;
}

.ip-cal-day.ip-cal-today {
    background: #e3f2fd;
    border: 2px solid var(--ip-primary-color);
}

.ip-cal-day.ip-cal-has-event {
    background: #fff3e0;
}

.ip-cal-day-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--ip-dark);
}

.ip-cal-events {
    margin-top: 5px;
}

.ip-cal-event {
    display: block;
    font-size: 11px;
    padding: 3px 5px;
    background: var(--ip-primary-color);
    color: white;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-cal-event:hover {
    background: var(--ip-secondary-color);
}

/* Tooltip */
.ip-tooltip {
    position: absolute;
    background: var(--ip-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ip-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--ip-dark);
}

/* Modal */
.ip-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ip-modal.ip-modal-open {
    display: flex;
}

.ip-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.ip-modal-content {
    position: relative;
    background: white;
    border-radius: var(--ip-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ip-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--ip-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ip-modal-header h3 {
    margin: 0;
}

.ip-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.ip-modal-close:hover {
    color: var(--ip-dark);
}

.ip-modal-body {
    padding: 20px;
}

body.ip-modal-active {
    overflow: hidden;
}
