/* Home Dynamic CSS - Modern Dashboard Design */

/* Custom Variables - Soft Modern Palette */
:root {
    --home-primary: #8b5cf6;
    --home-secondary: #6b7280;
    --home-success: #34d399;
    --home-warning: #fbbf24;
    --home-danger: #f87171;
    --home-info: #60a5fa;
    --home-light: #fafafa;
    --home-dark: #374151;
    --home-border: #e5e7eb;
    --home-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --home-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --home-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --home-gradient-primary: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    --home-gradient-success: linear-gradient(135deg, #6ee7b7 0%, #86efac 100%);
    --home-gradient-warning: linear-gradient(135deg, #fcd34d 0%, #fde68a 100%);
    --home-gradient-info: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 100%);
    --home-gradient-danger: linear-gradient(135deg, #f87171 0%, #fca5a5 100%);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 -15px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.hero-badge .badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-meta {
    margin-top: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.meta-item i {
    font-size: 1rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: white;
}

.floating-card.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 10%;
    right: 20%;
    animation-delay: 1.5s;
}

.floating-card.card-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.floating-card.card-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--home-shadow);
    border: 1px solid var(--home-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--home-gradient-primary);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--home-shadow-xl);
}

.stat-card-primary::before {
    background: var(--home-gradient-primary);
}

.stat-card-success::before {
    background: var(--home-gradient-success);
}

.stat-card-warning::before {
    background: var(--home-gradient-warning);
}

.stat-card-info::before {
    background: var(--home-gradient-info);
}

.stat-card-danger::before {
    background: var(--home-gradient-danger);
}

.stat-card:hover::before {
    height: 6px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(192, 132, 252, 0.08) 100%);
    color: var(--home-primary);
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(134, 239, 172, 0.08) 100%);
    color: var(--home-success);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(253, 230, 138, 0.08) 100%);
    color: var(--home-warning);
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(191, 219, 254, 0.08) 100%);
    color: var(--home-info);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon i {
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--home-dark);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--home-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.stat-change i {
    font-size: 0.875rem;
}

/* Announcement Card */
.announcement-card {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.04) 0%, rgba(191, 219, 254, 0.04) 100%);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--home-shadow-lg);
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.announcement-icon {
    width: 50px;
    height: 50px;
    background: var(--home-gradient-info);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.announcement-icon i {
    font-size: 1.25rem;
}

.announcement-title h5 {
    color: var(--home-dark);
    font-weight: 600;
    margin: 0;
}

.announcement-content {
    color: var(--home-secondary);
    line-height: 1.6;
}

/* Section Titles */
.section-title {
    color: var(--home-dark);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--home-primary);
    margin-right: 0.5rem;
}

/* Action Cards */
.action-card {
    display: block;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--home-shadow);
    border: 1px solid var(--home-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s ease;
}

.action-card-primary::before {
    background: var(--home-gradient-primary);
}

.action-card-success::before {
    background: var(--home-gradient-success);
}

.action-card-warning::before {
    background: var(--home-gradient-warning);
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--home-shadow-xl);
    text-decoration: none;
    color: inherit;
}

.action-card:hover::before {
    height: 6px;
}

.action-card:hover .action-arrow {
    transform: translateX(5px);
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.action-card-primary .action-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(192, 132, 252, 0.08) 100%);
    color: var(--home-primary);
}

.action-card-success .action-icon {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(134, 239, 172, 0.08) 100%);
    color: var(--home-success);
}

.action-card-warning .action-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(253, 230, 138, 0.08) 100%);
    color: var(--home-warning);
}

.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-icon i {
    font-size: 1.5rem;
}

.action-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--home-dark);
    margin-bottom: 0.5rem;
}

.action-description {
    color: var(--home-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.action-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--home-secondary);
}

.stat-item i {
    font-size: 0.875rem;
}

.action-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--home-secondary);
    transition: all 0.3s ease;
}

.action-arrow i {
    font-size: 1.25rem;
}

/* Activity Timeline */
.activity-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--home-shadow);
    border: 1px solid var(--home-border);
}

.activity-timeline {
    position: relative;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--home-border);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: 1rem;
}

.activity-content {
    flex: 1;
    padding-top: 0.25rem;
}

.activity-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--home-dark);
    margin-bottom: 0.25rem;
}

.activity-description {
    color: var(--home-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--home-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        margin: 0;
        border-radius: 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-visual {
        height: 200px;
        margin-top: 2rem;
    }
    
    .floating-card {
        width: 60px;
        height: 60px;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-item {
        justify-content: center;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .action-card {
        padding: 1rem;
    }
    
    .action-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .activity-section {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .action-card {
        padding: 0.75rem;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
    }
    
    .action-icon i {
        font-size: 1.25rem;
    }
    
    .activity-section {
        padding: 1rem;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.action-card {
    animation: fadeInUp 0.6s ease-out;
}

.action-card:nth-child(1) { animation-delay: 0.1s; }
.action-card:nth-child(2) { animation-delay: 0.2s; }
.action-card:nth-child(3) { animation-delay: 0.3s; }
.action-card:nth-child(4) { animation-delay: 0.4s; }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .stat-card,
    .action-card,
    .activity-section {
        background: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
    }
    
    .stat-number,
    .action-title,
    .activity-title {
        color: #f1f5f9;
    }
    
    .stat-label,
    .action-description,
    .activity-description,
    .activity-time {
        color: #94a3b8;
    }
}

/* Print Styles */
@media print {
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .floating-cards {
        display: none;
    }
    
    .stat-card,
    .action-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .stat-card::before,
    .action-card::before {
        display: none;
    }
}

/* Accessibility */
.stat-card:focus-within,
.action-card:focus-within {
    outline: 2px solid var(--home-primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .stat-card,
    .action-card {
        border: 2px solid #000;
    }
    
    .stat-card::before,
    .action-card::before {
        height: 6px;
        background: #000;
    }
}
