body {
    margin: 0;
    background: #fafafa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

button {
    padding: 8px 12px;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

p {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

    p:before {
        content: '';
        width: 8px;
        height: 8px;
        background: #48bb78;
        border-radius: 50%;
        animation: pulse 2s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

button {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

div[style*="margin-bottom:12px"] button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

    div[style*="margin-bottom:12px"] button:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    div[style*="margin-bottom:12px"] button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }

        div[style*="margin-bottom:12px"] button:hover:before {
            left: 100%;
        }

    div[style*="margin-bottom:12px"] button:active {
        transform: translateY(0);
    }

div[style*="margin-bottom:8px"] {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

    div[style*="margin-bottom:8px"] button:first-child {
        background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    }

        div[style*="margin-bottom:8px"] button:first-child:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
        }

    div[style*="margin-bottom:8px"] button:last-child {
        background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
        margin-left: 0 !important;
    }

        div[style*="margin-bottom:8px"] button:last-child:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(245, 101, 101, 0.4);
        }

    div[style*="margin-bottom:8px"] button:active {
        transform: translateY(0);
    }

img {
    max-width: 100%;
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Blazor InputNumber Styling */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .input-label:before {
        content: '';
        width: 4px;
        height: 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }

/* Target Blazor's rendered input */
.input-group input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2d3748;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .input-group input:hover {
        border-color: #cbd5e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .input-group input:focus {
        border-color: transparent;
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 16px rgba(102, 126, 234, 0.15);
        transform: translateY(-1px);
    }

    .input-group input::placeholder {
        color: #a0aec0;
        font-weight: 400;
    }

    /* Remove default number spinner */
    .input-group input::-webkit-inner-spin-button,
    .input-group input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

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

    /* Validation states */
    .input-group input.valid {
        border-color: #48bb78;
        box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
    }

    .input-group input.invalid,
    .input-group input.modified.invalid {
        border-color: #f56565;
        box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
    }

    /* Disabled state */
    .input-group input:disabled {
        background: #f7fafc;
        color: #a0aec0;
        cursor: not-allowed;
        opacity: 0.6;
    }


/* Carousel */
.carousel-container {
    max-width: 100%;
    width: 70%;
    /*position: relative;*/
    margin: 0 auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: white;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /*background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);*/
    padding: 2rem;
    color: white;
}

.slide-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.slide-description {
    font-size: 1rem;
    opacity: 0.9;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 10;
}

    .carousel-btn .icon {
        width: 26px;
        height: 26px;
        display: block;
    }

    .carousel-btn:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }

    .carousel-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .carousel-btn.prev {
        left: 1rem;
    }

    .carousel-btn.next {
        right: 1rem;
    }

.undo-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e11d48; /* red */
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

    .undo-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

    .indicator.active {
        background: white;
        width: 30px;
        border-radius: 5px;
    }

    .indicator:hover {
        background: rgba(255, 255, 255, 0.8);
    }

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    font-size: 0.95rem;
    font-weight: 700;
}

    .toast.success {
        background-color: #4caf50;
    }

    .toast.error {
        background-color: #f44336;
    }

    .toast.warning {
        background-color: #ff9800;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
