.iro-reports-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.iro-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.iro-filter select {
    min-width: 200px;
}

/* Styly pro Select2 */
.select2-container--default .select2-selection--multiple {
    border-color: #ddd;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #007cba;
}

/* Status filter specifické barvy */
.select2-results__option[data-value="completed"] {
    color: #006600;
}

.select2-results__option[data-value="in-progress"] {
    color: #cc7700;
}

.select2-results__option[data-value="not-started"] {
    color: #666666;
}

.iro-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.iro-report-tile {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.iro-report-tile:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.iro-report-tile h3 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.iro-report-content {
    position: relative;
    margin: 15px 0;
}

.content-preview {
    max-height: 4.8em; /* 3 řádky */
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease-out;
    line-height: 1.6;
    color: #333;
}

.content-preview.expanded {
    max-height: none;
}

.show-more-btn {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    width: auto;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: auto;
    margin-right: auto;
}

.show-more-btn:hover {
    color: #333;
    border-color: #999;
    background-color: #f8f9fa;
}

/* Gradient pro skrytý obsah */
.content-preview.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, #ffffff);
    pointer-events: none;
}

/* Ikony pro tlačítko */
.show-more-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.task-checklist {
    margin-top: 15px;
}

.task-checklist h5 {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #666;
}

.task-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-checklist li {
    display: flex;
    align-items: center;
    margin: 4px 0;
    font-size: 0.9em;
}

.task-checklist li.completed {
    color: #28a745;
    text-decoration: line-through;
}

.checklist-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.user-name {
    font-weight: bold;
}

.user-email {
    color: #666;
    margin-left: 5px;
}

.dashicons {
    margin-right: 5px;
    color: #666;
}

.task-status-info {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.task-status-info h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #333;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.task-assigned, .task-due {
    display: flex;
    align-items: center;
}

.task-assigned .dashicons, .task-due .dashicons {
    margin-right: 5px;
    font-size: 16px;
    color: #666;
}

.task-progress {
    position: relative;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #CD0000;
    transition: width 0.3s ease;
}

.task-percent {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 0.9em;
    font-weight: bold;
    color: #666;
}

.task-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.task-info h4 {
    margin: 0 0 8px 0;
    font-size: 1em;
    color: #333;
}

.task-status {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.9em;
}

.status-label {
    color: #666;
}

.task-assigned, .task-due {
    display: flex;
    align-items: center;
    color: #666;
}

.task-assigned .dashicons, 
.task-due .dashicons {
    margin-right: 5px;
    font-size: 16px;
    color: #666;
}

.task-details {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.task-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
}

.task-status {
    padding: 2px 8px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 0.85em;
}

.task-assigned, .task-due {
    display: flex;
    align-items: center;
}

.iro-report-status {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #eee;
}

.iro-report-status p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9em;
}

.status-text {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 10px;
    font-weight: bold;
}

.status-text.completed {
    background-color: #e6ffe6;
    color: #006600;
}

.status-text.in-progress {
    background-color: #fff3e6;
    color: #cc7700;
}

.status-text.not-started {
    background-color: #f2f2f2;
    color: #666666;
}

.assigned-user, .due-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.assigned-user .dashicons,
.due-date .dashicons {
    color: #666;
    font-size: 16px;
}

.iro-report-content {
    margin: 15px 0;
}

.iro-report-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iro-report-links .iro-open-content-btn:first-child {
    margin-bottom: 5px;
}

.iro-report-links .iro-open-content-btn:not(:first-child) {
    margin-left: 0;
}

.task-assigned {
    display: flex;
    align-items: center;
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.task-assigned .dashicons {
    margin-right: 5px;
    font-size: 16px;
    color: #666;
}

.iro-planner-task {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.task-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.task-assigned {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9em;
}

.task-assigned .dashicons {
    margin-right: 5px;
    font-size: 16px;
    color: #666;
}

.iro-task-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar {
    height: 100%;
    background: #CD0000;
    transition: width 0.3s ease;
}

.iro-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 9999;
    overflow: hidden;
}

.iro-modal.iro-modal-open {
    display: flex;
    justify-content: center;
    align-items: center;
}

.iro-modal-content {
    position: relative;
    background-color: #fff;
    width: 95%;
    height: 95%;
    border-radius: 8px;
    overflow: hidden;
}

.iro-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iro-content-container {
    width: 100%;
    height: 100%;
}

.iro-content-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Status styly */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 16px;
}

.status-badge.completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.in-progress {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status-badge.not-started {
    background-color: #f5f5f5;
    color: #616161;
}

/* Button styles for all content types */
.iro-open-content-btn {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.iro-open-content-btn:hover {
    color: #333;
    border-color: #999;
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

/* Power BI specific styles */
.iro-open-content-btn[data-type="powerbi"] {
    border-color: #e91e63;
    color: #e91e63;
}

.iro-open-content-btn[data-type="powerbi"]:hover {
    border-color: #c2185b;
    color: #c2185b;
    background-color: #fce4ec;
}

/* Report specific styles */
.iro-open-content-btn[data-type="report"] {
    border-color: #e91e63;
    color: #e91e63;
}

.iro-open-content-btn[data-type="report"]:hover {
    border-color: #c2185b;
    color: #c2185b;
    background-color: #fce4ec;
}

/* Infographic specific styles */
.iro-open-content-btn[data-type="infographic"] {
    border-color: #28a745;
    color: #28a745;
}

.iro-open-content-btn[data-type="infographic"]:hover {
    border-color: #218838;
    color: #218838;
    background-color: #f0fff0;
}

/* Excel specific styles */
.iro-open-content-btn[data-type="excel"] {
    border-color: #ff6b35;
    color: #ff6b35;
}

.iro-open-content-btn[data-type="excel"]:hover {
    border-color: #e55a2b;
    color: #e55a2b;
    background-color: #fff5f0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .iro-reports-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .iro-report-tile {
        padding: 16px;
        margin: 0 10px;
    }
    
    .iro-filter {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .iro-filter select {
        min-width: 100%;
    }
    
    .iro-modal-content {
        width: 98%;
        height: 98%;
        margin: 10px;
    }
    
    .iro-modal-close {
        right: 10px;
        top: 10px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    
    .iro-report-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .iro-open-content-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}