/* Reset default margins and ensure container is visible */
#spis-container {
    width: 500px;
    height: 300px;
    margin: 20px auto !important;
    background: linear-gradient(45deg, #ff4500, #ffa500, #ff0000);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

#spis-container:hover {
    background: linear-gradient(45deg, #ff0000, #ffa500, #ff4500);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8);
}

#spis-branding {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.spis-button {
    width: 138px;
    height: 40px;
    background: linear-gradient(45deg, #ff4500, #ffa500) !important;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 10px auto;
    white-space: nowrap;
}

.spis-button:hover {
    background: linear-gradient(45deg, #ff0000, #ffa500) !important;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.9);
    transform: scale(1.1);
}

#spis-file-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    color: #333;
}

#spis-input-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.spis-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.spis-input-wrapper label {
    font-size: 10px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#spis-width, #spis-height, #spis-radius {
    width: 100px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ff4500;
    text-align: center;
}

#spis-format-select {
    width: 138px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ff4500;
    margin: 10px;
    background: #fff;
    color: #333;
}

#spis-processing-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

#spis-fire-animation {
    width: 100px;
    height: 100px;
    background: linear-gradient(0deg, #ff4500, #ffa500);
    border-radius: 50%;
    animation: fire 1.5s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

#spis-animation-text {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    white-space: nowrap;
}

@keyframes fire {
    0% { transform: scale(1); opacity: 1; background: linear-gradient(0deg, #ff4500, #ffa500); }
    50% { transform: scale(1.3); opacity: 0.7; background: linear-gradient(0deg, #ff0000, #ff4500); }
    100% { transform: scale(1); opacity: 1; background: linear-gradient(0deg, #ff4500, #ffa500); }
}

/* Popup Styling */
.spis-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spis-popup-content {
    width: 300px;
    height: 200px;
    background: #fff;
    border: 2px solid #ff4500;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.spis-popup-content p {
    margin: 0 0 20px;
    font-size: 16px;
    color: #333;
}

#spis-popup-close {
    width: 100px;
    height: 35px;
    font-size: 16px;
}

/* Supported Files Styling */
#spis-supported-files {
    position: absolute;
    bottom: 10px;
    color: #fff;
    font-size: 16px; /* Updated to match #spis-branding */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    white-space: nowrap;
}