/* Verify Page Specific Styles */

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Noto Sans SC', sans-serif;
}

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

.verify-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.verify-header h2 {
    color: #ffd700;
    margin-top: 10px;
    font-weight: 300;
}

.back-link {
    display: inline-block;
    margin-top: 10px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    /* padding: 25px; */
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    @media (min-width: 600px) {
        padding: 25px;
    }
}

h3 {
    color: #ffd700;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-left: 3px solid #ffd700;
    padding-left: 10px;
}

/* Input Styles */
.input-group {
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.input-row .input-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    /* Fix for padding increasing width */
}

input:focus,
select:focus {
    outline: none;
    border-color: #ffd700;
}

select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    /* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.hint {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.8rem;
}

.verify-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Result Styles */
.step-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.step-item:last-child {
    border-bottom: none;
}

.step-label {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.step-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    word-break: break-all;
}

.step-value.code {
    color: #aaddff;
}

.step-value.highlight {
    color: #ffaa00;
    font-weight: bold;
}

.step-value.highlight-gold {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.step-item small {
    color: #555;
    margin-top: 4px;
}

.verification-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 170, 0, 0.1);
    border-radius: 6px;
    border-left: 3px solid #ffaa00;
}

.verification-note p {
    margin: 0;
    color: #ddd;
    font-size: 0.9rem;
}

/* Algorithm Info */
.algorithm-code {
    background: #111;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

pre {
    color: #4f6;
    font-family: monospace;
    white-space: pre-wrap;
    margin: 10px 0;
}

.steps-explanation ol {
    padding-left: 20px;
    color: #ccc;
}

.steps-explanation li {
    margin-bottom: 10px;
}

.steps-explanation a {
    color: #ffd700;
    text-decoration: none;
}

.steps-explanation a:hover {
    text-decoration: underline;
}

/* Prefix Input Styles */
.prefix-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.prefix-input-wrapper:focus-within {
    border-color: #ffd700;
}

.prefix-label {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid #444;
    color: #888;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    white-space: nowrap;
}

.prefix-input-wrapper input {
    border: none;
    background: transparent;
    padding: 12px;
    width: 100%;
    border-radius: 0;
}

.prefix-input-wrapper input:focus {
    outline: none;
    border: none;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        gap: 0;
    }

    .verify-container {
        padding: 10px;
    }

    .step-value {
        font-size: 1rem;
    }
}