/* Converter Styles */
.dec-hex-converter {
    margin: 0 auto;
}

.converter-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

@media (max-width: 767px) {
    .converter-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

.labels-row,
.inputs-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.labels-row {
    margin-bottom: 0.75rem;
}

.inputs-row {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .labels-row,
    .inputs-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .labels-row {
        margin-bottom: 0.5rem;
    }
}

.input-group,
.output-group {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767px) {
    .input-group,
    .output-group {
        width: 100%;
        margin-bottom: 0;
    }
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d3748;
}

.conversion-arrow-label {
    flex-shrink: 0;
    width: 32px;
}

.label-icon {
    font-size: 1.2rem;
}

.label-text {
    flex: 1;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.converter-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.25rem;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.converter-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.converter-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.output-field {
    background: #f0f9ff;
    border-color: #93c5fd;
    color: #1e40af;
    font-weight: 600;
    cursor: default;
}

.output-field:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.input-clear,
.copy-button {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 10;
}

.input-clear:hover,
.copy-button:hover {
    background: #f1f5f9;
    color: #334155;
    transform: scale(1.05);
}

.input-clear:active,
.copy-button:active {
    transform: scale(0.95);
}

.copy-button {
    gap: 0.5rem;
    padding: 0 0.75rem;
    width: auto;
    min-width: 2.5rem;
}

.copy-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.copy-button.copied {
    color: #10b981;
}

.copy-button.copied .copy-text::after {
    content: 'ed!';
}

.conversion-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-top: 0;
    color: #4a90e2;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.6;
        transform: translateY(4px);
    }
}

@media (max-width: 767px) {
    .conversion-arrow {
        margin: 0.5rem 0;
        transform: rotate(90deg);
        align-self: center;
    }
    
    .conversion-arrow-label {
        display: none;
    }
}

.validation-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.5rem;
    color: #ef4444;
    font-weight: 500;
    padding-left: 0.25rem;
}

.inputs-row .input-group {
    margin-bottom: 0;
}

.conversion-steps {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.steps-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.steps-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #475569;
}

.steps-placeholder {
    color: #94a3b8;
    font-style: italic;
    margin: 0;
}

.step-item {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4a90e2;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    font-weight: 700;
    color: #4a90e2;
    margin-right: 0.5rem;
}

.step-formula {
    
    background: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0.25rem 0;
    display: inline-block;
    font-weight: 600;
    color: #1e40af;
}

.step-result {
    
    font-weight: 600;
    color: #059669;
    margin-left: 0.5rem;
}

.examples-section {
    margin-top: 3rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.examples-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.example-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: center;
}

.example-card:hover {
    border-color: #4a90e2;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.example-card:active {
    transform: translateY(0);
}

.example-input,
.example-output {
    
    font-weight: 600;
    font-size: 1.1rem;
}

.example-input {
    color: #2d3748;
}

.example-output {
    color: #1e40af;
}

.example-arrow {
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 767px) {
    .examples-section {
        padding: 1.5rem;
    }
    
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-section {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.info-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.info-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

@media (max-width: 767px) {
    .info-section {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
}
