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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #1e1e1e;
    color: #d4d4d4;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #3e3e3e;
}

header h1 {
    color: #4ec9b0;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: #858585;
    font-size: 1.1em;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.section {
    margin-bottom: 20px;
}

.section label {
    display: block;
    margin-bottom: 8px;
    color: #9cdcfe;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group {
    position: relative;
}

#regex-input {
    width: 100%;
    padding: 12px 15px;
    background: #252526;
    border: 2px solid #3e3e3e;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 1.1em;
    border-radius: 4px;
    transition: border-color 0.3s;
}

#regex-input:focus {
    outline: none;
    border-color: #4ec9b0;
}

.input-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    font-size: 0.85em;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #858585;
}

.status-indicator.compatible {
    background: #4ec9b0;
}

.status-indicator.incompatible {
    background: #f48771;
}

.status-text {
    color: #858585;
}

.status-text.compatible {
    color: #4ec9b0;
}

.status-text.incompatible {
    color: #f48771;
}

#test-string-input {
    width: 100%;
    padding: 12px 15px;
    background: #252526;
    border: 2px solid #3e3e3e;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95em;
    border-radius: 4px;
    resize: vertical;
    transition: border-color 0.3s;
    line-height: 1.5;
}

#test-string-input:focus {
    outline: none;
    border-color: #4ec9b0;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #4ec9b0;
    color: #1e1e1e;
}

.btn-primary:hover {
    background: #3ab8a0;
}

.btn-success {
    background: #6a9955;
    color: #ffffff;
}

.btn-success:hover {
    background: #5a8555;
}

.btn-secondary {
    background: #3e3e3e;
    color: #d4d4d4;
}

.btn-secondary:hover {
    background: #4e4e4e;
}

.results-panel,
.compatibility-status,
.match-info {
    background: #252526;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    padding: 15px;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.placeholder-text {
    color: #858585;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.results-panel h4 {
    color: #9cdcfe;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.match-result {
    padding: 8px;
    margin: 5px 0;
    background: #1e1e1e;
    border-left: 3px solid #4ec9b0;
    border-radius: 3px;
}

.match-result.no-match {
    border-left-color: #f48771;
}

.match-result.match {
    border-left-color: #6a9955;
}

.error-message {
    color: #f48771;
    padding: 10px;
    background: #3a2525;
    border-left: 3px solid #f48771;
    border-radius: 3px;
    margin: 10px 0;
}

.success-message {
    color: #4ec9b0;
    padding: 10px;
    background: #253a3a;
    border-left: 3px solid #4ec9b0;
    border-radius: 3px;
    margin: 10px 0;
}

.info-panel {
    background: #252526;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    padding: 20px;
    margin-top: 30px;
}

.info-panel h3 {
    color: #4ec9b0;
    margin-bottom: 15px;
}

.info-panel p {
    margin-bottom: 10px;
    color: #d4d4d4;
    line-height: 1.8;
}

.info-panel strong {
    color: #9cdcfe;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #3e3e3e;
    border-top-color: #4ec9b0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #3e3e3e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4e4e4e;
}
