/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-item h3 {
    font-weight: 700;
    color: white;
}

/* Quick Resources */
.resource-card {
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

/* Alerts Section */
.alert-card {
    background: white;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.alert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Compact Alert Cards */
.alert-card-compact {
    background: white;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.alert-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.alert-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.alert-card-body {
    flex: 1;
    margin-bottom: 1rem;
}

.alert-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.alert-brief {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6c757d;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin: 0;
}

.alert-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.alert-high {
    border-left-color: #dc3545;
    background: linear-gradient(to right, rgba(220, 53, 69, 0.05), white);
}

.alert-critical {
    border-left-color: #212529;
    background: linear-gradient(to right, rgba(33, 37, 41, 0.05), white);
}

.alert-medium {
    border-left-color: #ffc107;
    background: linear-gradient(to right, rgba(255, 193, 7, 0.05), white);
}

.alert-low {
    border-left-color: #28a745;
    background: linear-gradient(to right, rgba(40, 167, 69, 0.05), white);
}

/* Meeting Section */
.meeting-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.meeting-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: drift 20s infinite linear;
    z-index: 0;
    pointer-events: none;
}

.meeting-banner > * {
    position: relative;
    z-index: 1;
}

@keyframes drift {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Notices Section */
.notice-card {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #17a2b8;
}

/* CTA Section */
.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

/* Section Headers */
.section-header {
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Alert Modal Content Styles */
.alert-content-html {
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-content-html h1,
.alert-content-html h2,
.alert-content-html h3,
.alert-content-html h4,
.alert-content-html h5,
.alert-content-html h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.alert-content-html h1 { font-size: 1.5rem; }
.alert-content-html h2 { font-size: 1.3rem; }
.alert-content-html h3 { font-size: 1.1rem; }
.alert-content-html h4 { font-size: 1rem; }
.alert-content-html h5 { font-size: 0.95rem; }
.alert-content-html h6 { font-size: 0.9rem; }

.alert-content-html p {
    margin-bottom: 0.75rem;
}

.alert-content-html ul,
.alert-content-html ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.alert-content-html li {
    margin-bottom: 0.25rem;
}

.alert-content-html table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.alert-content-html table th,
.alert-content-html table td {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
}

.alert-content-html table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.alert-content-html blockquote {
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border-left: 4px solid #667eea;
    background-color: #f8f9fa;
}

.alert-content-html code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
}

.alert-content-html pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.alert-content-html pre code {
    background: transparent;
    padding: 0;
}

.alert-content-html a {
    color: #667eea;
    text-decoration: none;
}

.alert-content-html a:hover {
    text-decoration: underline;
}

.alert-content-html hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stats-card {
        margin-top: 2rem;
    }
    
    .resource-card {
        margin-bottom: 1rem;
    }
    
    .alert-card-compact {
        min-height: 220px;
    }
    
    .alert-brief {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 576px) {
    .alert-card-compact {
        min-height: 200px;
    }
    
    .alert-title {
        font-size: 0.95rem;
    }
    
    .alert-brief {
        font-size: 0.8125rem;
    }
}

/* Bootstrap Icons Integration */
.bi {
    vertical-align: -0.125em;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Loading animation for future use */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}