/**
 * School Notice Plugin - Enhanced Styles
 * 
 * @package SchoolNoticePlugin
 * @author Kunal Bose
 * @version 1.1.0
 */

.school-notices-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

/* Enhanced scrollbar styling */
.school-notices-container::-webkit-scrollbar {
    width: 10px;
}

.school-notices-container::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 5px;
}

.school-notices-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    border-radius: 5px;
    border: 2px solid #f1f3f4;
}

.school-notices-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #005a87, #0073aa);
}

/* Firefox scrollbar */
.school-notices-container {
    scrollbar-width: thin;
    scrollbar-color: #0073aa #f1f3f4;
}

/* Enhanced notice item styling */
.school-notice-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.school-notice-item:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.school-notice-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Pulse effect for new notices */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 115, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0); }
}

.school-notice-item.new-notice {
    animation: pulse 2s infinite;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .school-notice-item {
        padding: 15px;
        margin: 10px;
    }
    
    .notice-title {
        font-size: 18px;
    }
    
    .notice-content {
        font-size: 14px;
    }
    
    .school-notices-container {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .school-notice-item {
        padding: 12px;
        margin: 8px;
    }
    
    .notice-title {
        font-size: 16px;
    }
    
    .notice-content {
        font-size: 13px;
    }
}

/* Print styles */
@media print {
    .school-notices-container {
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .school-notice-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}
