/* Project Dashboard Styles */
.project-dashboard {
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-header {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-title {
    color: #2d3748;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.dashboard-actions .btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.stats-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1;
}

.stats-content p {
    color: #718096;
    margin: 5px 0 0 0;
    font-weight: 500;
}

/* Dashboard Sections */
.dashboard-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f7fafc;
}

.section-header h4 {
    color: #2d3748;
    font-weight: 600;
    margin: 0;
    font-size: 1.5rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.project-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-status.status-planning {
    background-color: #ffc107;
}

.project-status.status-inprogress {
    background-color: #28a745;
}

.project-status.status-onhold {
    background-color: #dc3545;
}

.project-status.status-completed {
    background-color: #6f42c1;
}

.project-header h5 {
    margin: 0;
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
}

.project-description {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.project-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.progress {
    flex: 1;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    min-width: 35px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-date {
    color: #718096;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-team {
    display: flex;
    gap: -5px;
}

.team-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid white;
    margin-left: -5px;
    position: relative;
    z-index: 1;
}

.team-avatar.more {
    background: #e2e8f0;
    color: #4a5568;
    font-size: 0.7rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #cbd5e0;
}

.empty-state h5 {
    color: #4a5568;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 25px;
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f7fafc;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #4a5568;
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.activity-time {
    color: #a0aec0;
    font-size: 0.8rem;
}

/* Quick Actions */
.quick-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.quick-actions .btn {
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.quick-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    margin: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 25px 30px 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    margin: 0;
    color: #2d3748;
    font-weight: 600;
    font-size: 1.25rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #f7fafc;
    color: #4a5568;
}

.btn-close::before {
    content: '×';
}

.modal-body {
    padding: 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.modal-actions .btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
}

/* Form Controls */
.form-label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-control-color {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-dashboard {
        padding: 15px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .stats-card {
        flex-direction: column;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        bottom: 15px;
        right: 15px;
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10px;
        border-radius: 12px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* Custom Scrollbar */
.activity-feed::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}
