/* Dashboard Specific Styles */
.dashboard-page {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0078d4, #106ebe);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.card-header i {
    font-size: 24px;
    color: #0078d4;
    opacity: 0.8;
}

.card-content {
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0078d4;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Activity List */
.activity-list {
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background-color: #f8f9fa;
    margin: 0 -20px;
    padding: 12px 20px;
    border-radius: 6px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    margin-right: 12px;
    color: #0078d4;
    width: 16px;
    text-align: center;
}

.activity-item .activity-text {
    flex: 1;
}

.activity-item .activity-time {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* Quick Actions */
.quick-actions {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.quick-actions h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: #0078d4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.quick-action-btn i {
    margin-right: 10px;
    font-size: 18px;
}

/* Recent Forms */
.recent-forms {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.recent-forms h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.recent-form-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.recent-form-item:hover {
    background-color: #f8f9fa;
    margin: 0 -20px;
    padding: 12px 20px;
    border-radius: 6px;
}

.recent-form-item:last-child {
    border-bottom: none;
}

.recent-form-icon {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.recent-form-icon i {
    color: #0078d4;
    font-size: 18px;
}

.recent-form-info {
    flex: 1;
}

.recent-form-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.recent-form-meta {
    font-size: 12px;
    color: #999;
}

.recent-form-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.recent-form-status.draft {
    background: #ffc107;
    color: #333;
}

.recent-form-status.submitted {
    background: #28a745;
    color: white;
}

.recent-form-status.pending {
    background: #17a2b8;
    color: white;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0078d4, #106ebe);
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.stat-card-icon i {
    color: white;
    font-size: 24px;
}

.stat-card-number {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-card-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.stat-card-change {
    font-size: 12px;
    margin-top: 5px;
}

.stat-card-change.positive {
    color: #28a745;
}

.stat-card-change.negative {
    color: #dc3545;
}

.stat-card-change.neutral {
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recent-form-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .recent-form-icon {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .stat-card-number {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}
