/* Converter Wrapper */
.converter-wrapper {
    margin: 0 auto;
}

/* Converter Card */
.converter-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.converter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Converter Header */
.converter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: white;
}

.header-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.header-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.header-content {
    flex: 1;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: white;
}

.header-subtitle {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
    color: white;
}

/* Converter Body */
.converter-body {
    padding: 2rem;
}

/* Input Group Wrapper */
.input-group-wrapper {
    margin-bottom: 1.5rem;
}

.input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2d3748;
}

.label-text {
    font-size: 0.95rem;
}

.label-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Container */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.input-container:focus-within {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-prefix {
    padding: 0 1rem;
    font-weight: 600;
    color: #718096;
    font-size: 0.9rem;
    user-select: none;
    border-right: 1px solid #e2e8f0;
}

.converter-input {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #2d3748;
    outline: none;
    font-weight: 500;
}

.converter-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.output-container {
    background: #f0fff4;
    border-color: #9ae6b4;
}

.output-container:focus-within {
    border-color: #48bb78;
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.1);
}

.output-input {
    color: #22543d;
    font-weight: 600;
}

/* Input Action Buttons */
.input-action-btn {
    padding: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-right: 0.5rem;
}

.input-action-btn:hover {
    background: #edf2f7;
    color: #2d3748;
}

.input-action-btn:active {
    transform: scale(0.95);
}

.input-action-btn svg {
    width: 18px;
    height: 18px;
}

.copy-btn:hover {
    background: #c6f6d5;
    color: #22543d;
}

/* Validation Message */
.validation-message {
    margin-top: 0.5rem;
    min-height: 1.5rem;
    font-size: 0.875rem;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.validation-message.show {
    opacity: 1;
    transform: translateY(0);
}

.validation-message::before {
    content: '⚠';
    font-size: 1rem;
}

/* Output Info */
.output-info {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #48bb78;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.output-info.show {
    opacity: 1;
    transform: translateY(0);
}

.output-info::before {
    content: '✓';
    font-size: 1rem;
    font-weight: bold;
}

/* Conversion Arrow */
.conversion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
}

.arrow-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, #667eea 50%, #e2e8f0 100%);
    border-radius: 2px;
}

.arrow-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }
}

.arrow-icon svg {
    width: 20px;
    height: 20px;
}

/* Converter Actions */
.converter-actions {
    padding: 1.5rem 2rem;
    background: #f7fafc;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:active::before {
    width: 300px;
    height: 300px;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.secondary-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-icon {
    display: flex;
    align-items: center;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* Examples Section */
.examples-section {
    margin-bottom: 2rem;
}

.examples-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

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

.example-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
}

.example-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

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

.example-input {
    color: #667eea;
}

.example-output {
    color: #48bb78;
}

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

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.info-text {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .converter-wrapper {
        padding: 0 0.5rem;
    }

    .converter-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .header-subtitle {
        font-size: 0.85rem;
    }

    .converter-body {
        padding: 1.5rem;
    }

    .converter-input {
        font-size: 1rem;
        padding: 0.875rem;
    }

    .input-prefix {
        padding: 0 0.75rem;
        font-size: 0.85rem;
    }

    .conversion-arrow {
        margin: 1rem 0;
    }

    .arrow-icon {
        width: 32px;
        height: 32px;
        margin: 0 0.5rem;
    }

    .arrow-icon svg {
        width: 16px;
        height: 16px;
    }

    .converter-actions {
        padding: 1rem;
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        min-width: unset;
    }

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }

    .example-card {
        justify-content: center;
    }
}

/* Copy Success Animation */
.copy-success {
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        background: #48bb78;
    }
    100% {
        transform: scale(1);
    }
}

/* Loading State */
.converter-input.loading {
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
