/* Dashboard Styles */

/* Project Cards */
.project-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 240px;
    max-height: 280px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.project-card .relative {
    z-index: 1;
}

/* Create Project Card */
.create-project-card {
    background: linear-gradient(135deg, #FAFBFF 0%, #F0F4FF 100%);
    border-radius: 16px;
    border: 2px dashed rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 240px;
    max-height: 280px;
    position: relative;
    overflow: hidden;
}

.create-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(2, 132, 199, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.create-project-card:hover::before {
    opacity: 1;
}

.create-project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, #F0F4FF 0%, #E6F2FF 100%);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15), 0 8px 16px rgba(14, 165, 233, 0.1);
}

/* Progress Animations */
.project-card .h-1\.5 > div {
    position: relative;
    overflow: hidden;
}

.project-card .h-1\.5 > div::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Progress Ring Animations */
.project-card svg circle:last-child {
    animation: progressRing 2s ease-in-out;
}

@keyframes progressRing {
    0% { stroke-dashoffset: 62.8; }
}

/* Hover Effects for Team Avatars */
.project-card .flex.-space-x-2 > div {
    transition: transform 0.2s ease;
}

.project-card:hover .flex.-space-x-2 > div {
    transform: translateY(-2px);
}

.project-card:hover .flex.-space-x-2 > div:nth-child(2) {
    transition-delay: 0.1s;
}

.project-card:hover .flex.-space-x-2 > div:nth-child(3) {
    transition-delay: 0.2s;
}

/* Status Dots with Pulse Animation */
.project-card .w-2.h-2 {
    animation: pulse 2s infinite;
}

.project-card .w-2.h-2:nth-child(2) {
    animation-delay: 0.5s;
}

.project-card .w-2.h-2:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Icon Hover Effects */
.project-card .w-14.h-14 svg {
    transition: transform 0.3s ease;
}

.project-card:hover .w-14.h-14 svg {
    transform: scale(1.1) rotate(5deg);
}

/* Floating Animation for Create Card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.create-project-card .animate-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.create-project-card .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Text Harmonization */
.project-card h3 {
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.project-card .text-sm {
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-card {
        min-height: 220px;
        max-height: 260px;
    }
    
    .create-project-card {
        min-height: 220px;
        max-height: 260px;
    }
    
    .project-card:hover,
    .create-project-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .project-card h3 {
        font-size: 1rem;
    }
    
    .project-card p {
        font-size: 0.8125rem;
    }
}

/* Loading State */
.project-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.project-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Additional Utility Classes */
.gradient-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}