/* Shared Tool Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Press Start 2P', cursive;
    background: #1a1a1a;
    color: #7c70da;
    overflow-x: hidden;
}

/* CRT Monitor */
.monitor-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 60px 40px 80px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.monitor-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 10px;
    background: #4a4a4a;
    border-radius: 5px;
}

.screen {
    background: #3e31a2;
    border: 15px solid #5a5a5a;
    border-radius: 10px;
    padding: 40px;
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(124, 112, 218, 0.2);
    position: relative;
    overflow: hidden;
}

/* Scanline Effect */
.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
}

/* Glow Effect */
.screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.content,
.page-content {
    position: relative;
    z-index: 5;
}

/* Header */
header {
    text-align: left;
    margin-bottom: 40px;
    animation: flicker 0.1s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

/* Typography */
h1 {
    font-size: 24px;
    color: #a3a3ff;
    text-shadow: 2px 2px 0 #5050c8;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

h2 {
    color: #a3a3ff;
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #5050c8;
}

p {
    margin-bottom: 15px;
    color: #a3a3ff;
}

strong {
    color: #a3a3ff;
}

/* Cursor */
.cursor {
    display: inline-block;
    width: 12px;
    height: 20px;
    background: #a3a3ff;
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav-btn {
    background: #7c70da;
    color: #3e31a2;
    border: 3px solid #a3a3ff;
    padding: 15px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 4px 4px 0 #5050c8;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background: #a3a3ff;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #5050c8;
}

/* Content Box */
.content-box {
    background: rgba(124, 112, 218, 0.1);
    border: 2px solid #7c70da;
    padding: 25px;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 11px;
}

/* Pixel Divider */
.pixel-divider {
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #7c70da 0px,
        #7c70da 8px,
        transparent 8px,
        transparent 16px
    );
    margin: 20px 0;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 20px;
}

li::before {
    content: '\25B6  ';
    color: #7c70da;
}

li {
    margin-bottom: 10px;
    color: #a3a3ff;
}

/* Textarea */
textarea {
    width: 100%;
    min-height: 200px;
    background: #2a2050;
    color: #a3a3ff;
    border: 3px solid #7c70da;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-bottom: 20px;
    resize: vertical;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

textarea:focus {
    outline: none;
    border-color: #a3a3ff;
}

/* Action Button (shared by converter + counter) */
.action-btn {
    background: #7c70da;
    color: #3e31a2;
    border: 3px solid #a3a3ff;
    padding: 20px 40px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 4px 4px 0 #5050c8;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 20px;
}

.action-btn:hover {
    background: #a3a3ff;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #5050c8;
}

.action-btn:active {
    background: #5050c8;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #7c70da;
    font-size: 9px;
    color: #7c70da;
}

/* Responsive */
@media (max-width: 768px) {
    .monitor-container {
        margin: 20px;
        padding: 40px 20px 60px;
    }

    .screen {
        padding: 20px;
        border-width: 10px;
    }

    h1 {
        font-size: 16px;
    }

    .nav-btn {
        font-size: 10px;
        padding: 12px 20px;
    }

    .content-box {
        font-size: 10px;
    }
}
