@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&display=swap');

* {
    transition: all 0.2s ease;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: -0.02em;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

.light-mode ::-webkit-scrollbar-track {
    background: #f2f7f5;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 0;
}

.light-mode ::-webkit-scrollbar-thumb {
    background: #ddd;
}

.raised-shadow {
    box-shadow: 0.4rem 0.4rem 0 #222;
    transition: all 0.2s ease;
}

.light-mode .raised-shadow {
    box-shadow: 0.4rem 0.4rem 0 #ccc;
}

.raised-shadow:hover {
    transform: translate(0.1rem, 0.1rem);
    box-shadow: 0.2rem 0.2rem 0 #222;
}

.light-mode .raised-shadow:hover {
    box-shadow: 0.2rem 0.2rem 0 #ccc;
}

.theme-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 0;
    border: 2px solid #333;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0.3rem 0.3rem 0 #222;
}

.light-mode .theme-toggle-btn {
    background: #fff;
    border: 2px solid #222;
    box-shadow: 0.3rem 0.3rem 0 #ccc;
}

.hidden {
    display: none;
}

input, select, button {
    font-family: 'IBM Plex Mono', monospace;
}

input[type="file"] {
    display: block;
    width: 100%;
    padding: 14px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.light-mode input[type="file"] {
    border-color: #333;
    color: #333;
}

input[type="file"]::file-selector-button {
    padding: 10px 24px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.light-mode input[type="file"]::file-selector-button {
    border-color: #333;
    color: #333;
}

input[type="file"]::file-selector-button:hover {
    background: #fff;
    color: #000;
}

.light-mode input[type="file"]::file-selector-button:hover {
    background: #333;
    color: #fff;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #fff;
    pointer-events: none;
    transition: all 0.2s ease;
}

.light-mode .select-wrapper::after {
    color: #333;
}

select {
    width: 100%;
    padding: 16px 20px;
    padding-right: 50px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.light-mode select {
    border-color: #333;
    color: #333;
}

select option {
    background: #111;
    color: #fff;
    padding: 10px;
}

.light-mode select option {
    background: #f2f7f5;
    color: #333;
}

#convert {
    padding: 18px 60px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.light-mode #convert {
    border-color: #333;
    color: #333;
}

#convert:hover {
    background: #fff;
    color: #000;
    transform: scale(1.02);
}

.light-mode #convert:hover {
    background: #333;
    color: #fff;
}

#filename {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.label-text {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 500;
}
