:root {
    /* Ivici ERP Color Variables */
    --positive: #10b981;
    --negative: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --primary-alert: #4f46e5;
    --background: #f9fafb;
    --card-bg: #ffffff;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --font-family: 'Source Sans 3', sans-serif;
    --text-primary-alert: #1f2937;
    --text-secondary: #6b7280;
    
    /* New premium shadow and glow effects */
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --glow-success: 0 0 15px rgba(16, 185, 129, 0.2);
    --glow-warning: 0 0 15px rgba(245, 158, 11, 0.2);
    --glow-danger: 0 0 15px rgba(239, 68, 68, 0.2);
    --glow-info: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Demo Page Styles */
.demo-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.demo-header {
    text-align: center;
    margin-bottom: 30px;
}

.demo-header h1 {
    margin-bottom: 10px;
    color: var(--text-primary-alert);
}

.demo-header p {
    color: var(--text-secondary);
}

.demo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.demo-btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.demo-btn:hover {
    transform: translateY(-2px);
}

.demo-btn.success {
    background-color: var(--positive);
}

.demo-btn.warning {
    background-color: var(--warning);
}

.demo-btn.danger {
    background-color: var(--negative);
}

.demo-btn.info {
    background-color: var(--info);
}

/* Alert System Styles */
#menssage {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 9999;
    pointer-events: none;
    max-width: 100%;
    width: 420px;
}

@media (max-width: 480px) {
    #menssage {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 16px;
        gap: 12px;
    }
}

.ivici-alert {
    display: flex;
    align-items: flex-start;
    padding: 18px 22px;
    border-radius: var(--border-radius-lg);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    animation: alertSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(8px);
    border-left: 4px solid transparent;
    transform-origin: center;
}

.ivici-alert.exiting {
    animation: alertSlideOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ivici-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 18px;
    flex-shrink: 0;
    transform-origin: center;
}

.ivici-alert-content {
    flex: 1;
    margin-top: 2px;
}

.ivici-alert-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.2;
    color: var(--text-primary-alert);
}

.ivici-alert-message {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 500;
}

.ivici-alert-close {
    margin-left: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    outline: none;
}

.ivici-alert-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.08);
    transform: rotate(90deg) scale(1.1);
}

.ivici-alert-close:focus-visible {
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.4);
    opacity: 1;
}

.ivici-alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    transform-origin: left;
}

/* Alert type-specific styles */
.ivici-alert.success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: var(--positive);
    box-shadow: var(--shadow-lg), var(--glow-success);
}

.ivici-alert.success .ivici-alert-icon {
    color: var(--positive);
    animation: iconSuccessPulse 2s infinite ease-in-out;
}

.ivici-alert.success .ivici-alert-title {
    color: var(--text-primary-alert);
}

.ivici-alert.success .ivici-alert-progress {
    background-color: var(--positive);
    opacity: 0.9;
}

.ivici-alert.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning);
    box-shadow: var(--shadow-lg), var(--glow-warning);
}

.ivici-alert.warning .ivici-alert-icon {
    color: var(--warning);
    animation: iconWarningPulse 1.5s infinite ease-in-out;
}

.ivici-alert.warning .ivici-alert-title {
    color: var(--text-primary-alert);
}

.ivici-alert.warning .ivici-alert-progress {
    background-color: var(--warning);
    opacity: 0.9;
}

.ivici-alert.danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: var(--negative);
    box-shadow: var(--shadow-lg), var(--glow-danger);
}

.ivici-alert.danger .ivici-alert-icon {
    color: var(--negative);
    animation: iconDangerPulse 1.2s infinite ease-in-out;
}

.ivici-alert.danger .ivici-alert-title {
    color: var(--text-primary-alert);
}

.ivici-alert.danger .ivici-alert-progress {
    background-color: var(--negative);
    opacity: 0.9;
}

.ivici-alert.info {
    background-color: rgba(59, 130, 246, 0.1);
    border-left-color: var(--info);
    box-shadow: var(--shadow-lg), var(--glow-info);
}

.ivici-alert.info .ivici-alert-icon {
    color: var(--info);
    animation: iconInfoPulse 2s infinite ease-in-out;
}

.ivici-alert.info .ivici-alert-title {
    color: var(--text-primary-alert);
}

.ivici-alert.info .ivici-alert-progress {
    background-color: var(--info);
    opacity: 0.9;
}

/* Animations */
@keyframes alertSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    60% {
        transform: translateY(-5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes alertSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    20% {
        opacity: 0.8;
        transform: translateY(-5px) scale(0.95);
    }
    100% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
}

@keyframes closeButtonExit {
    0% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(90deg) scale(0.5);
    }
}

@keyframes iconSuccessPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes iconWarningPulse {
    0%, 100% { transform: scale(1); }
    10%, 30%, 50%, 70%, 90% { transform: scale(1.05); }
    20%, 40%, 60%, 80% { transform: scale(0.95); }
}

@keyframes iconDangerPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

@keyframes iconInfoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes progressShrink {
    0% {
        transform: scaleX(1);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: scaleX(0);
        opacity: 0.9;
    }
}