.tool-layout {
    grid-template-columns: 350px 1fr;
}

.preset-group {
    margin-bottom: 20px;
}

.preset-btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 15px;
    background: var(--header-bg-color);
    border: 2px solid var(--input-border-color);
    color: var(--primary-text-color);
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.preset-btn:hover {
    background: var(--button-bg-color);
    color: var(--button-text-color);
    transform: translateY(-2px);
}

.preset-btn.active {
    background: var(--button-bg-color);
    color: var(--button-text-color);
    border-color: var(--button-bg-color);
}

.timing-section {
    background: var(--header-bg-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--input-border-color);
}

.timing-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.progress-slider {
    width: 100%;
    margin: 10px 0;
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.start-btn {
    background: #3b82f6 !important;
    color: white !important;
}

.stop-btn {
    background: var(--header-bg-color);
}

.warning-text {
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    font-style: italic;
    margin-top: 10px;
}

.preview-container {
    background: #000;
    border-radius: 12px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.loading-screen {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.loading-screen.active {
    display: flex;
}

/* Windows 7 */
.win7-screen {
    background-image: url('/images/windows7-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 1px 1px 2px black;
}

.win7-text {
    font-size: 2rem;
    margin-bottom: 20px;
}

.win7-percent {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.win7-message {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.win7-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Adjust as needed */
    background-image: url('/images/windows7-footer.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
}

/* Windows 10 */
.win10-screen {
    background: #00A9DA;
    color: white;
}

/* Windows 11 */
.win11-screen {
    background: #000;
    color: white;
}

/* === WINDOWS SPINNER CSS === */

.busy-loader {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 40px;
}

.w-ball-wrapper {
    position: absolute;
    width: 86px;
    height: 86px;
    opacity: 0;
    transform: rotate(225deg);
    animation: orbit 4.4s infinite;
}

.w-ball {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #FFFFFF;
    left: 0px;
    top: 0px;
    border-radius: 11px;
}

.ball-1 {
    animation-delay: 0.96s;
}

.ball-2 {
    animation-delay: 0.19s;
}

.ball-3 {
    animation-delay: 0.38s;
}

.ball-4 {
    animation-delay: 0.58s;
}

.ball-5 {
    animation-delay: 0.77s;
}

/* === END WINDOWS SPINNER CSS === */


/* macOS */
.mac-screen {
    background: #000;
    color: white;
}

.mac-logo img {
    width: 100px;
    height: 100px;
    margin-bottom: 40px;
}

.mac-progress {
    width: 300px;
    height: 4px;
    background: #3a3a3c;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.mac-progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.mac-text {
    font-size: 1.1rem;
    color: #86868b;
}

/* Terminal */
.terminal-screen {
    background: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    font-size: 14px;
    padding: 20px;
}

.terminal-line {
    margin-bottom: 5px;
    white-space: pre;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #0f0;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* === KEYFRAMES === */
@keyframes orbit {
    0% {
        opacity: 1;
        z-index: 99;
        transform: rotate(180deg);
        animation-timing-function: ease-out;
    }

    7% {
        opacity: 1;
        transform: rotate(300deg);
        animation-timing-function: linear;
    }

    30% {
        opacity: 1;
        transform: rotate(410deg);
        animation-timing-function: ease-in-out;
    }

    39% {
        opacity: 1;
        transform: rotate(645deg);
        animation-timing-function: linear;
    }

    70% {
        opacity: 1;
        transform: rotate(770deg);
        animation-timing-function: ease-out;
    }

    75% {
        opacity: 1;
        transform: rotate(900deg);
        animation-timing-function: ease-out;
    }

    76% {
        opacity: 0;
        transform: rotate(900deg);
    }

    100% {
        opacity: 0;
        transform: rotate(900deg);
    }
}

/* === END KEYFRAMES === */

.how-to-use {
    background: var(--input-bg-color);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid var(--input-border-color);
}

.how-to-use ol {
    margin-left: 20px;
    color: var(--primary-text-color);
}

.how-to-use li {
    margin-bottom: 10px;
}

.tips {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--input-border-color);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 1024px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }
}
