* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #08080c 0%, #0d0d14 50%, #0a0a12 100%);
}

.header-gradient {
    background: linear-gradient(90deg, rgba(151, 151, 255, 0.1) 0%, rgba(0, 193, 222, 0.1) 100%);
}

.card {
    background: #1a1a2e;
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 1rem;
    transition: border-color 0.2s ease;
}

@media (min-width: 640px) {
    .card {
        padding: 1.5rem;
    }
}

.card:hover {
    border-color: #3a3a6e;
}

.input-field {
    width: 100%;
    background: #0d0d14;
    border: 1px solid #2a2a4e;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
    .input-field {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

.input-field:focus {
    outline: none;
    border-color: #00C1DE;
    box-shadow: 0 0 0 3px rgba(0, 193, 222, 0.15);
}

.input-field::placeholder {
    color: #4a4a6e;
}

.code-editor {
    width: 100%;
    background: #0d0d14;
    border: 1px solid #2a2a4e;
    border-radius: 8px;
    padding: 0.75rem;
    color: #00C1DE;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
    .code-editor {
        padding: 1rem;
        font-size: 0.8rem;
        line-height: 1.6;
        min-height: 120px;
    }
}

.code-editor:focus {
    outline: none;
    border-color: #00C1DE;
    box-shadow: 0 0 0 3px rgba(0, 193, 222, 0.15);
}

.code-editor::placeholder {
    color: #4a4a6e;
}

.btn-primary {
    background: linear-gradient(135deg, #9797FF 0%, #00C1DE 100%);
    color: #0d0d14;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    min-height: 44px;
}

@media (min-width: 640px) {
    .btn-primary {
        padding: 0.75rem 1.5rem;
    }
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(151, 151, 255, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #9797FF;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    border: 1px solid #2a2a4e;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-height: 44px;
}

@media (min-width: 640px) {
    .btn-secondary {
        padding: 0.75rem 1.5rem;
    }
}

.btn-secondary:hover {
    border-color: #9797FF;
    background: rgba(151, 151, 255, 0.1);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0d14;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #2a2a4e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a6e;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Breakpoint for extra small devices */
@media (min-width: 400px) {
    .xs\:inline {
        display: inline;
    }
}