@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

body {
    background-color: #121212;
    color: #ffffff;
}

.card-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.grid-span-2 {
    grid-column: span 2;
}

.history-section {
    display: none;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.history-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-title-icon {
    color: #8cc427;
    font-size: 1.3rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.history-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.history-user {
    font-weight: 700;
    color: #8cc427;
}

.history-date {
    color: #888888;
}

.history-action {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
}

.history-changes {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

.change-label {
    color: #888888;
}

.change-old {
    color: #ff5252;
    text-decoration: line-through;
}

.change-arrow {
    color: #8cc427;
}

.change-new {
    color: #8cc427;
}

.submit-btn-wrapper {
    margin-top: 10px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
}

.page-title-inline {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}

.delete-btn {
    background: linear-gradient(135deg, #ff5252 0%, #c62828 100%) !important;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.modal-message {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.5;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.checker-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #75a821 0%, #5d8717 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, filter 0.2s;
}

.checker-btn:hover {
    filter: brightness(1.1);
}

.checker-btn:active {
    transform: scale(0.98);
}

.confirm-info-box {
    font-size: 0.9rem;
    color: #8cc427;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.confirm-info-val {
    color: #ffffff;
}

.confirm-info-ean {
    color: #ffffff;
    font-family: monospace;
}

.modal-title-alert {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff5252;
    margin: 0;
}

.hidden {
    display: none !important;
}

#toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 400px;
}

.toast {
    background-color: #18181b;
    color: #ffffff;
    padding: 0 16px;
    border-radius: 8px;
    border: 0 solid #27272a;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transform: translate3d(0, 16px, 0) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                margin-top 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    text-align: center;
    will-change: transform, opacity, max-height, margin-top, padding;
    box-sizing: border-box;
}

.toast.show {
    opacity: 1;
    max-height: 80px;
    margin-top: 8px;
    padding: 12px 16px;
    border: 1px solid #27272a;
    transform: translate3d(0, 0, 0) scale(1);
}

.toast.error {
    border-left: 4px solid #ff5252;
}

.toast.success {
    border-left: 4px solid #75a821;
}