/* NumberBaseConverter.css - Calculator-Specific Styles Only */
/* ⚠️ DO NOT redefine global classes from layout.css */

/* Input Group Styling */
.input-group-custom {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 0.95rem;
}

.input-hint {
    display: block;
    margin-top: 4px;
    color: #718096;
    font-size: 0.8rem;
    font-style: italic;
}

/* Mode Description */
.mode-description {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Base Icon Colors */
.binary-icon {
    color: #10b981;
    font-size: 0.7rem;
    margin-right: 6px;
}

.octal-icon {
    color: #f59e0b;
    font-size: 0.7rem;
    margin-right: 6px;
}

.decimal-icon {
    color: #3b82f6;
    font-size: 0.7rem;
    margin-right: 6px;
}

.hex-icon {
    color: #8b5cf6;
    font-size: 0.7rem;
    margin-right: 6px;
}

/* Result Item Styling */
.result-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 15px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.result-label {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    font-family: 'Roboto Mono', monospace;
    word-break: break-all;
    padding: 8px 0;
}

/* Bit Analysis Styling */
.bit-analysis-row {
    margin-bottom: 15px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
}

.bit-analysis-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.bit-analysis-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    color: #1a202c;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    margin-bottom: 4px;
}

.bit-analysis-desc {
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
    margin-top: 4px;
}

.bit-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.bit-group {
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

.bit-group.sign {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.bit-group.exponent {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.bit-group.fraction {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* Calculation Steps */
.calculation-step {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 15px 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #f59e0b;
}

.step-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    margin-right: 10px;
    font-size: 0.9rem;
}

.step-title {
    font-weight: 600;
    color: #78350f;
    margin-bottom: 8px;
    font-size: 1rem;
}

.step-content {
    color: #92400e;
    line-height: 1.6;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.step-formula {
    background: white;
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
    font-family: 'Roboto Mono', monospace;
    color: #1a202c;
    border: 1px solid #fbbf24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .result-value {
        font-size: 1.2rem;
    }

    .bit-group {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .step-content {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .result-value {
        font-size: 1rem;
    }

    .input-label {
        font-size: 0.9rem;
    }

    .input-hint {
        font-size: 0.75rem;
    }
}
