/* Card View Styling for Carbon Updates Dashboard */

.project-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 70px 0 10px 0; /* Added top padding to prevent toolbar overlap */
    width: 100%;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

/* Project card image container */
.project-card-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
    position: relative;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
    font-size: 0.9rem;
}

.project-card-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.project-card-header {
    padding: 15px;
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    color: white;
}

.project-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.project-card-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.project-card-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.project-card-footer {
    padding: 15px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.project-card-footer .action-button {
    flex: 1;
    justify-content: center;
}

/* Additional metrics styling */
.project-card-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.project-card-metric {
    text-align: center;
    flex: 1;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.metric-label {
    font-size: 0.75rem;
    color: #666;
    display: block;
}

/* Status indicator */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: #4caf50;
}

.status-pending {
    background-color: #ff9800;
}

.status-inactive {
    background-color: #f44336;
}

/* Loading and error states */
.loading-message, .error-message {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.error-message {
    color: var(--error-color);
}

/* Empty state styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
    min-height: 400px;
}

.empty-state i {
    color: #4caf50;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 10px 0;
    color: #333;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 5px 0;
    color: #666;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-cards-container {
        grid-template-columns: 1fr;
        padding-top: 90px; /* Increased top padding for mobile */
    }
}
