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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

#announcement-container {
    position: fixed;
    top: 20px;
    right: calc(50% + 10px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 999;
    width: 320px;
}

#notify-container {
    position: fixed;
    top: 20px;
    left: calc(50% + 10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 999;
    width: 280px;
}

.announcement {
    display: flex;
    background-image: url('https://i.imgur.com/3KKe5Nh.png');
    background-size: 100% 100%;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    width: 320px;
    margin-top: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    padding: 4px;
    border: 2px solid #ffd78c;
}

.announcement.show {
    opacity: 1;
    transform: translateY(0);
}

.announcement .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.announcement .icon-background {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    box-shadow: 0 3px 6px rgba(255, 193, 7, 0.3);
    border: 2px solid #fff;
}

.announcement .icon {
    color: white;
    font-size: 16px;
}

.announcement .content {
    padding: 10px;
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.announcement .header {
    color: #5d4037;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
}

.announcement .header .title-text {
    margin-right: 5px;
}

.announcement .header .title-badge {
    background: #ff9800;
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

.announcement .message {
    color: #5d4037;
    font-size: 13px;
    line-height: 1.4;
}

.announcement .progress-bar {
    height: 4px;
    background: linear-gradient(to right, #ffc107, #ff9800);
    width: 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 5s linear;
    border-radius: 0 0 0 10px;
}

.announcement.persistent {
    animation: pulse 2s infinite alternate;
    border: 2px solid #ff9800;
}

.announcement.persistent .icon-background {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
}

.announcement.persistent .header .title-badge {
    background: #ff5722;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 152, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(255, 152, 0, 0.8);
    }
}

.notify {
    display: flex;
    background-image: url('https://i.imgur.com/bU9VtBw.png');
    background-size: 100% 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    width: 280px;
    margin-top: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    position: relative;
    padding: 4px;
}

.notify.show {
    opacity: 1;
    transform: translateY(0);
}

.notify .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.notify .icon-background {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.notify .content {
    padding: 10px;
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.notify .message {
    color: #5d4037;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.notify .progress-bar {
    height: 3px;
    width: 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 3s linear;
    border-radius: 0 0 0 10px;
}

.notify.info {
    border: 2px solid #81d4fa;
}

.notify.info .icon-background {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
}

.notify.info .icon {
    color: white;
}

.notify.info .progress-bar {
    background: linear-gradient(to right, #29b6f6, #0288d1);
}

.notify.success {
    border: 2px solid #a5d6a7;
}

.notify.success .icon-background {
    background: linear-gradient(135deg, #66bb6a 0%, #388e3c 100%);
}

.notify.success .icon {
    color: white;
}

.notify.success .progress-bar {
    background: linear-gradient(to right, #66bb6a, #388e3c);
}

.notify.warning {
    border: 2px solid #ffe082;
}

.notify.warning .icon-background {
    background: linear-gradient(135deg, #ffa726 0%, #f57c00 100%);
}

.notify.warning .icon {
    color: white;
}

.notify.warning .progress-bar {
    background: linear-gradient(to right, #ffa726, #f57c00);
}

.notify.error {
    border: 2px solid #ef9a9a;
}

.notify.error .icon-background {
    background: linear-gradient(135deg, #ef5350 0%, #d32f2f 100%);
}

.notify.error .icon {
    color: white;
}

.notify.error .progress-bar {
    background: linear-gradient(to right, #ef5350, #d32f2f);
}

.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.dialog-content {
    background-image: url('https://i.imgur.com/N7QwOFR.png');
    background-size: 100% 100%;
    border-radius: 15px;
    width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: dialogFadeIn 0.4s;
    border: 3px solid #ffd78c;
    overflow: hidden;
    padding: 6px;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fffbef;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px dashed #ffc107;
}

.dialog-header span {
    color: #5d4037;
    font-size: 20px;
    font-weight: 700;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
}

.close-button {
    color: #ff9800;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.close-button:hover {
    color: #f57c00;
    transform: scale(1.1);
}

.dialog-body {
    padding: 20px;
    color: #5d4037;
    background-color: rgba(255, 255, 255, 0.95);
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #5d4037;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: #fffbef;
    border: 2px solid #ffd78c;
    border-radius: 10px;
    color: #5d4037;
    font-size: 15px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25), inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-description {
    display: block;
    color: #9e9e9e;
    font-size: 12px;
    margin-top: 5px;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    background-color: #fffbef;
    border-radius: 0 0 10px 10px;
    border-top: 2px dashed #ffc107;
}

.dialog-button {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'VT323', monospace;
}

.dialog-button.confirm {
    background: linear-gradient(to bottom, #ffc107 0%, #ff9800 100%);
    color: white;
    border: 2px solid white;
}

.dialog-button.confirm:hover {
    background: linear-gradient(to bottom, #ffca2c 0%, #ffa726 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.dialog-button.confirm:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dialog-button.cancel {
    background: linear-gradient(to bottom, #eeeeee 0%, #e0e0e0 100%);
    color: #757575;
    border: 2px solid white;
}

.dialog-button.cancel:hover {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
    color: #616161;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.dialog-button.cancel:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#confirm-content {
    line-height: 1.6;
    margin: 10px 0;
    font-size: 15px;
}

#confirm-content p {
    margin-bottom: 8px;
}

#confirm-content strong {
    color: #ff9800;
    font-weight: 700;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.tab-container {
    display: flex;
    background-color: #fffbef;
    border-radius: 10px;
    border: 2px solid #ffd78c;
    margin-bottom: 15px;
    overflow: hidden;
}

.tab {
    padding: 12px 20px;
    flex: 1;
    text-align: center;
    color: #5d4037;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-family: 'VT323', monospace;
    font-size: 18px;
    letter-spacing: 1px;
}

.tab:hover {
    background-color: #fff7e0;
}

.tab.active {
    background-color: #ffd78c;
    color: #5d4037;
    border-bottom: 3px solid #ff9800;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

.tab-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

#active-order-details {
    background-color: #fffbef;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ffd78c;
    margin-bottom: 15px;
}

#active-order-details p {
    margin-bottom: 8px;
    color: #5d4037;
}

#active-order-details strong {
    color: #ff9800;
    font-weight: 700;
}

#active-order-details .no-order {
    text-align: center;
    color: #9e9e9e;
    font-style: italic;
    padding: 20px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}