@tailwind base;
@tailwind components;
@tailwind utilities;

input[type="number"] {
    background-color: transparent;
    border-bottom: 2px solid #fff;
}

input:focus {
    outline: none;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #1f1f33;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #33334d;
}

/* Tab Buttons */
.tab-btn {
    @apply px-5 py-2 rounded-md text-sm font-medium text-textMuted transition-all duration-300 flex items-center gap-2 border border-transparent;
}

.tab-btn:hover {
    @apply text-white bg-white/5;
}

.tab-btn.active {
    @apply bg-[#1f1f33] text-white border-white/10 shadow-[0_2px_10px_rgba(0, 0, 0, 0.5)];
}

.tab-btn.active i {
    @apply text-accent1;
}

/* Sim Action Buttons */
.sim-action-btn {
    @apply px-4 py-1.5 rounded-lg text-sm font-medium transition-all duration-300 flex items-center gap-2 backdrop-blur-sm shadow-lg;
    width: 10rem;
}

/* Control Inputs */
.control-group {
    @apply flex flex-col gap-1.5;
}

.control-label {
    @apply text-[10px] uppercase font-mono text-textMuted tracking-wider font-semibold;
}

.control-input {
    @apply bg-black/50 border border-border rounded-md px-3 py-1.5 text-white font-mono text-sm focus:outline-none focus:border-accent1 transition-colors w-24 text-center;
}

.control-select {
    @apply bg-black/50 border border-border rounded-md px-3 py-1.5 text-white font-mono text-sm focus:outline-none focus:border-accent1 transition-colors w-32 appearance-none cursor-pointer;
}

.control-range {
    @apply w-32 h-1 bg-border rounded-lg appearance-none cursor-pointer outline-none;
}

.control-range::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00f0ff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    transition: transform 0.1s;
}

.control-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Prose (Markdown) Styles */
.prose {
    font-size: 0.95rem;
    color: #94a3b8;
}

.prose h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00f0ff, #bf00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid #1f1f33;
    padding-bottom: 1rem;
    line-height: 1.2;
}

.prose h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prose h2::before {
    content: "";
    display: block;
    width: 4px;
    height: 1.2rem;
    background: #00f0ff;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.prose h3 {
    font-size: 1.05rem;
    color: #f1f5f9;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.prose ul {
    list-style-type: none;
    padding-left: 0.5rem;
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.prose li::before {
    content: "▹";
    color: #ff003c;
    font-weight: bold;
    font-family: monospace;
}

.prose strong {
    color: #fff;
    font-weight: 600;
    background: rgba(0, 240, 255, 0.1);
    padding: 0 4px;
    border-radius: 4px;
}

.prose hr {
    border-color: #1f1f33;
    margin: 2.5rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.prose th,
.prose td {
    border: 1px solid #1f1f33;
    padding: 0.5rem;
    text-align: left;
}

/* Stats UI */
.stat-box {
    @apply flex flex-col gap-1;
}

.stat-label {
    @apply text-[10px] text-textMuted uppercase font-mono tracking-wider;
}

.stat-value {
    @apply text-xl font-mono font-bold text-white flex items-baseline gap-1;
}

.stat-value.accent {
    @apply text-accent1;
}

.stat-unit {
    @apply text-xs text-textMuted font-normal;
}