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

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #e4e4e7;
    padding: 20px;
    min-height: 100vh;
}

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

.header-top {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: stretch;
}

.header-title-section {
    flex: 1;
    padding: 16px 20px;
    background: rgba(30, 30, 46, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(78, 201, 176, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100%;
}

.header-title-section h1 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    letter-spacing: -0.5px;
}

.header-title-section .header-subtitle {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 400;
}

.header-middle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: rgba(30, 30, 46, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(78, 201, 176, 0.2);
    backdrop-filter: blur(10px);
    width: 250px;
    flex-shrink: 0;
    min-height: 100%;
}

.header {
    text-align: center;
    flex: 1;
    padding: 30px 20px;
    background: rgba(30, 30, 46, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(78, 201, 176, 0.2);
    backdrop-filter: blur(10px);
}

.header h1 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    letter-spacing: -0.5px;
}

.header-subtitle {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 400;
}

.toggle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.toggle-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
}

.parser-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(30, 30, 46, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(78, 201, 176, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
    transition: all 0.3s ease;
}

.status-indicator.active {
    background: #4ec9b0;
    box-shadow: 0 0 10px rgba(78, 201, 176, 0.8);
}

.shield-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield {
    width: 80px;
    height: 90px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.shield:hover {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.shield svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    display: block;
    outline: none;
}

.shield svg path {
    transition: fill 0.3s ease;
}

.panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.panel {
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(78, 201, 176, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: rgba(78, 201, 176, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.panel-header {
    font-size: 18px;
    font-weight: 600;
    color: #4ec9b0;
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(78, 201, 176, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.console {
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid rgba(78, 201, 176, 0.15);
    border-radius: 8px;
    padding: 20px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    color: #e4e4e7;
    flex: 1;
    min-height: 400px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.console::-webkit-scrollbar {
    width: 12px;
}

.console::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.8);
    border-radius: 6px;
}

.console::-webkit-scrollbar-thumb {
    background: rgba(78, 201, 176, 0.3);
    border-radius: 6px;
    border: 2px solid rgba(15, 15, 35, 0.8);
}

.console::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 201, 176, 0.5);
}

.hex-line {
    color: #9cdcfe;
    font-weight: 400;
}

.hex-offset {
    color: #6b7280;
}

.password-found {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 15px;
    margin-top: 12px;
    margin-bottom: 8px;
    animation: pulse 2s infinite;
    background: rgba(255, 107, 107, 0.15);
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.01);
    }
}

.controls {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(30, 30, 46, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(78, 201, 176, 0.2);
}

.btn {
    background: linear-gradient(135deg, #4ec9b0 0%, #3db89a 100%);
    color: #0f0f23;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    margin: 0 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(78, 201, 176, 0.3);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 201, 176, 0.4);
    background: linear-gradient(135deg, #5dd9c4 0%, #4ec9b0 100%);
}

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

.btn:disabled {
    background: rgba(107, 114, 128, 0.3);
    color: rgba(228, 228, 231, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(107, 114, 128, 0.2);
    color: #e4e4e7;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(107, 114, 128, 0.3);
    border-color: rgba(107, 114, 128, 0.5);
}

.status-info {
    color: #4ec9b0;
}

.status-error {
    color: #ff6b6b;
    font-weight: 500;
}

.status-success {
    color: #89d185;
    font-weight: 500;
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: #9ca3af;
    font-size: 14px;
}

.hex-input-section {
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(78, 201, 176, 0.2);
    border-radius: 12px;
    padding: 12px;
    backdrop-filter: blur(10px);
    min-width: 400px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.hex-input-header {
    font-size: 12px;
    font-weight: 600;
    color: #4ec9b0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

.hex-input-container {
    position: relative;
    width: 100%;
}

.hex-input-field {
    width: 100%;
    min-height: 40px;
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid rgba(78, 201, 176, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    color: #e4e4e7;
    resize: vertical;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.hex-input-field:focus {
    outline: none;
    border-color: rgba(78, 201, 176, 0.4);
    box-shadow: 0 0 0 3px rgba(78, 201, 176, 0.1);
}

.hex-input-field::placeholder {
    color: #6b7280;
}

.hex-input-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hex-input-info {
    font-size: 11px;
    color: #9ca3af;
    flex: 1;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
    }

    .header-title-section h1 {
        font-size: 24px;
    }

    .header-middle-section {
        min-width: auto;
        width: 100%;
    }

    .hex-input-section {
        min-width: auto;
        width: 100%;
    }

    .panels {
        grid-template-columns: 1fr;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}
