.agy-smart-events {
    position: fixed;
    z-index: 10000;
    font-family: 'Arial', sans-serif;
}

/* Topbar */
.agy-event-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 50px 12px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease;
}

/* Banner */
.agy-event-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary, #2c3e50);
    color: white;
    padding: 15px 50px 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: slideDown 0.5s ease;
}

/* Modal */
.agy-event-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.agy-event-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: scaleIn 0.3s ease;
    overflow: hidden;
}

.agy-event-modal .agy-event-header {
    background: linear-gradient(135deg, var(--primary, #2c3e50) 0%, var(--secondary, #3498db) 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.agy-event-modal .agy-event-body {
    padding: 25px;
    color: var(--text-dark, #333);
    line-height: 1.6;
}

.agy-event-modal .agy-event-footer {
    padding: 0 25px 25px;
    text-align: center;
}

/* Notification */
.agy-event-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left: 4px solid var(--accent, #e74c3c);
    max-width: 350px;
    animation: slideInRight 0.9s ease;
    overflow: hidden;
}

/* Common Styles */
.agy-event-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agy-event-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.agy-event-text {
    flex: 1;
}

.agy-event-title {
    display: block;
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.agy-event-desc {
    font-size: 0.85rem;
    opacity: 0.9;
}

.agy-event-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agy-event-close:hover {
    opacity: 1;
}

.agy-event-action {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    margin-left: 10px;
}

.agy-event-action:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.agy-event-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent, #e74c3c);
    animation: progressBar 6s linear forwards;
}

/* Event Type Colors */
.agy-event-type-education {
    border-left-color: #27ae60;
}

.agy-event-type-campaign {
    border-left-color: #e74c3c;
}

.agy-event-type-system {
    border-left-color: #f39c12;
}

.agy-event-type-webinar {
    border-left-color: #9b59b6;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* Dark Theme Support */
[data-theme="dark"] .agy-event-notification,
[data-theme="dark"] .agy-event-modal {
    background: var(--bg-white, #2d2d2d);
    color: var(--text-dark, #ffffff);
}

[data-theme="dark"] .agy-event-modal .agy-event-body {
    color: var(--text-dark, #ffffff);
}

/* Responsive */
@media (max-width: 768px) {
    .agy-event-topbar,
    .agy-event-banner {
        padding: 10px 40px 10px 15px;
    }
    
    .agy-event-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .agy-event-modal {
        width: 95%;
        margin: 20px;
    }
    
    .agy-event-content {
        gap: 8px;
    }
    
    .agy-event-icon {
        font-size: 1.2rem;
    }
    
    .agy-event-title {
        font-size: 0.9rem;
    }
    
    .agy-event-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .agy-event-topbar,
    .agy-event-banner {
        padding: 8px 35px 8px 12px;
    }
    
    .agy-event-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .agy-event-icon {
        font-size: 1.1rem;
    }
}