/**
 * Global styles for Windows 98 Desktop
 * 페이지 전체에 적용되는 기본 스타일
 */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'MS Sans Serif', 'Microsoft Sans Serif', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #008080;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Web Component host element */
windows98-desktop {
    display: block;
    width: 100vw;
    height: 100vh;
}

/* Hidden state for loading */
windows98-desktop.desktop-hidden {
    display: none;
}

/* Font fallback for Windows 98 style */
@font-face {
    font-family: 'MS Sans Serif';
    src: local('MS Sans Serif'), local('Microsoft Sans Serif'), local('Tahoma'), local('Segoe UI');
    font-display: swap;
}

/* Scrollbar styling for Windows 98 look */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
}

::-webkit-scrollbar-thumb:hover {
    background: #dfdfdf;
}

::-webkit-scrollbar-thumb:active {
    background: #b0b0b0;
    border: 1px inset #c0c0c0;
}

/* Loading state */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #008080;
    color: white;
    font-family: 'MS Sans Serif', 'Microsoft Sans Serif', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
}

.loading-subtitle {
    font-size: 12px;
    margin-top: 10px;
    opacity: 0.8;
}

/* Error state */
.error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #008080;
    color: white;
    font-family: 'MS Sans Serif', 'Microsoft Sans Serif', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    padding: 20px;
}

.error h2 {
    margin-bottom: 10px;
    color: #ffff00;
}

.error button {
    margin-top: 15px;
    padding: 8px 16px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    font-family: 'MS Sans Serif', 'Microsoft Sans Serif', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
    cursor: pointer;
}

.error button:hover {
    background: #dfdfdf;
}

.error button:active {
    border: 2px inset #c0c0c0;
    background: #b0b0b0;
}

/* Force clock styling (보라색 문제 해결) */
#current-time,
.time,
span.time {
    color: #000000 !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* Remove any link styling that might affect the clock */
a,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

windows98-desktop a,
windows98-desktop a:visited,
windows98-desktop a:hover,
windows98-desktop a:active {
    text-decoration: none;
}