.retro-input {
    background: #2a2a2a;
    border: 4px solid #fb8c00;
    color: white;
    padding: 1rem;
    width: 100%;
    max-width: 500px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.retro-input:focus {
    outline: none;
    box-shadow: 0 0 10px #f4511e;
}

.retro-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 3px solid #fb8c00;
    background: #2a2a2a;
    cursor: pointer;
    margin-right: 10px;
}

.retro-radio:checked {
    background: #f4511e;
    box-shadow: inset 0 0 0 3px #2a2a2a;
}

.error-console {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    font-family: 'VT323', monospace;
    background-color: rgba(0, 0, 0, 0.95);
    color: #ff3333;
    border: 2px solid #ff3333;
    padding: 2rem;
    white-space: pre-wrap;
    text-shadow: 0 0 5px #ff3333;
    animation: errorBlink 1s infinite;
    min-width: 500px;
    max-width: 800px;
}

.error-console-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.error-console::before {
    content: "ERROR:\\> ";
    color: #ff6666;
}

@keyframes errorBlink {
    0%, 100% {
        border-color: #ff3333;
        box-shadow: 0 0 5px #ff3333;
    }
    50% {
        border-color: #ff6666;
        box-shadow: 0 0 15px #ff3333;
    }
}

/* Add scanlines effect to error console */
.error-console::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.2) 0px,
        rgba(0, 0, 0, 0.2) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scan 10s linear infinite;
}

.error-console-prompt {
    display: inline-block;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    animation: promptBlink 1s step-end infinite;
    margin-left: 0.5ch;
}

@keyframes promptBlink {
    50% { opacity: 0; }
}

/* Custom styles for Prism */
pre[class*="language-"] {
    background: #1a1a1a !important;
    border: 2px solid #f97316;
    border-radius: 0.5rem;
}

.token.comment { color: #666 !important; }
.token.string { color: #f97316 !important; }
.token.number { color: #60a5fa !important; }
.token.property { color: #34d399 !important; }
.line-numbers .line-numbers-rows { border-right: 2px solid #f97316 !important; }

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    display: none;
}

*:hover::-webkit-scrollbar {
    display: block;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border: 2px solid #f97316;
}

::-webkit-scrollbar-thumb {
    background: #f4511e;
    border: 2px solid #fb8c00;
}

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

/* Audio Player Styling */
audio::-webkit-media-controls-panel {
    background-color: #1a1a1a;
    border: 2px solid #f97316;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #f97316;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    filter: invert(60%) sepia(94%) saturate(3000%) hue-rotate(360deg);
}

audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-timeline {
    filter: hue-rotate(300deg) saturate(200%);
}

/* Hide scrollbar for Firefox */
* {
    scrollbar-width: none;
}

*:hover {
    scrollbar-width: thin;
    scrollbar-color: #f4511e #1a1a1a;
}

/* File List Styles */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    font-family: 'VT323', monospace;
    font-size: 1.25rem;
}

.file-group {
    margin-bottom: 1rem;
}

.group-header {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-bottom: 2px solid #00ff00;
}

.group-files {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-item {
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.file-item:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
}

.file-item.selected {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    font-size: 1.5rem;
    min-width: 1.5rem;
    text-align: center;
}

.file-path {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.file-dir {
    opacity: 0.6;
}

.file-size {
    font-size: 0.9em;
    min-width: 4rem;
    text-align: right;
}

/* Modal adjustments */
.modal-header {
    padding: 0.5rem 1rem;
    border-bottom: 2px solid #00ff00;
}

.modal-close {
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
}

/* Scrollbar styling */
.file-list::-webkit-scrollbar {
    width: 8px;
}

.file-list::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.1);
}

.file-list::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Type-specific colors */
.file-item[data-type="code"] .file-icon { @apply text-blue-400; }
.file-item[data-type="markup"] .file-icon { @apply text-green-400; }
.file-item[data-type="locales"] .file-icon { @apply text-yellow-400; }
.file-item[data-type="images"] .file-icon { @apply text-purple-400; }
.file-item[data-type="audio"] .file-icon { @apply text-red-400; }
.file-item[data-type="font"] .file-icon { @apply text-pink-400; }

/* Selected file state */
.file-item.selected {
    @apply bg-orange-500 bg-opacity-25;
}

.file-item.selected .file-dir,
.file-item.selected .file-size {
    @apply text-orange-300;
}

.file-item.selected .file-name {
    @apply text-orange-100;
}

/* Binary file notice */
.binary-notice {
    @apply p-4 text-center text-gray-400 border border-gray-700 rounded;
}

/* Loading indicator */
.loading-indicator {
    @apply flex items-center justify-center p-8;
}

.loading-indicator::after {
    content: '';
    @apply w-8 h-8 border-4 border-orange-500 border-t-transparent rounded-full animate-spin;
}

/* Error message */
.error-message {
    @apply text-red-500 bg-red-900 bg-opacity-25 p-4 rounded border border-red-500;
}

/* Retro Audio Player */
.retro-audio {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    margin: 1rem 0;
}

/* Audio Player Controls */
.retro-audio audio {
    width: 100%;
    filter: sepia(100%) saturate(400%) grayscale(0) contrast(200%) invert(5%);
}

/* Webkit Custom Audio Player */
.retro-audio audio::-webkit-media-controls-panel {
    background: #1a1a1a;
}

.retro-audio audio::-webkit-media-controls-current-time-display,
.retro-audio audio::-webkit-media-controls-time-remaining-display {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.retro-audio audio::-webkit-media-controls-play-button,
.retro-audio audio::-webkit-media-controls-timeline,
.retro-audio audio::-webkit-media-controls-volume-slider {
    filter: invert(100%) sepia(100%) saturate(1000%) hue-rotate(80deg);
}

/* Firefox Custom Audio Player */
.retro-audio audio::-moz-range-thumb {
    background: #00ff00;
}

.retro-audio audio::-moz-range-track {
    background: #333;
}

/* Audio Title */
.retro-audio-title {
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Line range display */
#line-range {
    font-family: 'VT323', monospace;
    text-align: right;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 1rem;
}

#file-content pre {
    margin: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    flex: 1;
}

#file-content code {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    line-height: 1.5;
}

/* Font preview styles */
.font-preview {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.font-sample {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.font-sample h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.font-sample p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Update file list styles to remove directory display */
.file-path {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.file-name {
    color: #00ff00;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
}

/* Improve code display */
pre[class*="language-"].line-numbers {
    padding-left: 3.5em !important;
}

.line-numbers .line-numbers-rows {
    border-right: 2px solid rgba(0, 255, 0, 0.3) !important;
}

.line-numbers-rows > span:before {
    color: rgba(0, 255, 0, 0.5) !important;
}

/* Load more button improvements */
#load-more {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    cursor: pointer;
    font-family: 'VT323', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    transition: all 0.3s ease;
}

#load-more:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.binary-warning {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff3333;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.binary-warning p {
    margin: 0.5rem 0;
    color: #ff3333;
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.3);
}

#line-range {
    font-family: 'VT323', monospace;
    text-align: right;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 1rem;
}

/* Add the retro button styles from main.css */
.retro-button {
    background: #1a1a1a;
    color: #fbbf24;
    padding: 0.75rem 1.5rem;
    border: 2px solid #f97316;
    box-shadow: 0 0 10px #f97316, inset 0 0 5px #f97316;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    min-width: 180px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.retro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px #f97316, inset 0 0 10px #f97316;
}

.retro-button:active {
    transform: translateY(1px);
    box-shadow: 0 0 5px #f97316, inset 0 0 3px #f97316;
}

.retro-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    from { background-position: 0 0; }
    to { background-position: 0 20px; }
}

/* Add glow effect to the main container boxes */
.bg-gray-800 {
    box-shadow: 0 0 15px #f97316;
    transition: box-shadow 0.3s ease;
}

.bg-gray-800:hover {
    box-shadow: 0 0 25px #f97316;
} 