/* EuTrack Moderní notifikační systém - CSS */

/* Kontejner pro toast notifikace */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Toast notifikace */
.notification-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Typy notifikací */
.notification-success {
    border-left: 4px solid #10b981;
}

.notification-success .notification-icon {
    color: #10b981;
    background: #d1fae5;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error .notification-icon {
    color: #ef4444;
    background: #fee2e2;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-warning .notification-icon {
    color: #f59e0b;
    background: #fef3c7;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-info .notification-icon {
    color: #3b82f6;
    background: #dbeafe;
}

/* Ikona notifikace */
.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Obsah notifikace */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Tlačítko zavření */
.notification-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal okna */
.notification-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.notification-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    overflow: hidden;
}

/* Modal header */
.notification-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.notification-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Modal body */
.notification-modal-body {
    padding: 24px;
}

.notification-modal-confirm .notification-modal-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.notification-modal-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.notification-modal-message {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.notification-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    transition: all 0.2s;
    margin-top: 12px;
    font-family: inherit;
}

.notification-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modal footer */
.notification-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Tlačítka */
.notification-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.notification-btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.notification-btn-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}

.notification-btn-confirm {
    background: #ef4444;
    color: white;
}

.notification-btn-confirm:hover {
    background: #dc2626;
}

.notification-btn-primary {
    background: #3b82f6;
    color: white;
}

.notification-btn-primary:hover {
    background: #2563eb;
}

/* Responsivní design */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .notification-toast {
        min-width: auto;
        max-width: 100%;
    }

    .notification-modal-content {
        min-width: auto;
        max-width: 90vw;
        margin: 0 20px;
    }

    .notification-modal {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
        transform: translate(0, -50%) scale(0.9);
    }

    .notification-modal.show {
        transform: translate(0, -50%) scale(1);
    }
}

/* Animace progress baru */
@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.notification-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress 4s linear forwards;
}

.notification-success::after {
    background: #10b981;
}

.notification-error::after {
    background: #ef4444;
}

.notification-warning::after {
    background: #f59e0b;
}

.notification-info::after {
    background: #3b82f6;
}