/**
 * Task Manager Pro - Public Visibility Styles
 */

/* Responsive Design */
@media (max-width: 768px) {
    .tmp-boards-container {
        flex-direction: column;
    }
    
    .tmp-board-column {
        min-width: 100%;
    }
    
    .tmp-project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tmp-tasks-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .tmp-public-board-view,
    .tmp-public-task-list,
    .tmp-single-task,
    .tmp-project-overview {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .tmp-board-column,
    .tmp-task-item,
    .tmp-task-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .tmp-task-title,
    .tmp-board-header h4 {
        color: #ffffff;
    }
    
    .tmp-task-meta,
    .tmp-task-description {
        color: #b0b0b0;
    }
}

/* Animation Effects */
.tmp-task-card,
.tmp-task-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tmp-task-card:hover,
.tmp-task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Loading States */
.tmp-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tmp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: tmp-spin 1s linear infinite;
}

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

/* Priority Color Variations */
.tmp-priority-high {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.tmp-priority-medium {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
}

.tmp-priority-low {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
}

.tmp-priority-urgent {
    background: linear-gradient(135deg, #ff3838, #ff6b6b);
    color: white;
    animation: tmp-pulse 2s infinite;
}

@keyframes tmp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 56, 56, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 56, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 56, 56, 0); }
}

/* Custom Scrollbar */
.tmp-public-board-view::-webkit-scrollbar {
    height: 8px;
}

.tmp-public-board-view::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tmp-public-board-view::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.tmp-public-board-view::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print Styles */
@media print {
    .tmp-public-board-view,
    .tmp-public-task-list,
    .tmp-single-task,
    .tmp-project-overview {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .tmp-task-card:hover,
    .tmp-task-item:hover {
        transform: none;
        box-shadow: none;
    }
}

