/**
 * Bijoy Converter - WordPress Plugin Styles
 * Modern, responsive design with clean UI
 */

.bijoy-converter-widget {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bijoy-converter-title {
    margin: 0 0 25px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
}

/* Conversion Mode Selection */
.bijoy-converter-mode {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    justify-content: center;
}

.bijoy-converter-mode label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bijoy-converter-mode label:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.bijoy-converter-mode input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.bijoy-converter-mode input[type="radio"]:checked + span {
    color: #0073aa;
    font-weight: 600;
}

/* Input/Output Groups */
.bijoy-converter-input-group,
.bijoy-converter-output-group {
    margin-bottom: 20px;
}

.bijoy-converter-input-group label,
.bijoy-converter-output-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.bijoy-converter-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Kalpurush', 'SolaimanLipi', Arial, sans-serif;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.bijoy-converter-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.bijoy-converter-textarea[readonly] {
    background-color: #f8f9fa;
    cursor: default;
}

/* Action Buttons */
.bijoy-converter-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bijoy-convert-btn,
.bijoy-swap-btn,
.bijoy-clear-btn,
.bijoy-copy-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.bijoy-convert-btn {
    background: #0073aa;
    color: #ffffff;
}

.bijoy-convert-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.bijoy-convert-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.bijoy-swap-btn {
    background: #f0f0f1;
    color: #2c3338;
}

.bijoy-swap-btn:hover {
    background: #dcdcde;
    transform: translateY(-2px);
}

.bijoy-clear-btn {
    background: #dc3545;
    color: #ffffff;
}

.bijoy-clear-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Copy Button */
.bijoy-converter-copy {
    margin-bottom: 20px;
}

.bijoy-copy-btn {
    width: 100%;
    background: #28a745;
    color: #ffffff;
}

.bijoy-copy-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Message Display */
.bijoy-converter-message {
    display: none;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

.bijoy-converter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bijoy-converter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bijoy-converter-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* More Tools Promotion */
.bijoy-more-tools {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.bijoy-tools-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.bijoy-more-tools a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.bijoy-more-tools a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Credit Link */
.bijoy-converter-credit {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f1;
    font-size: 13px;
    color: #666;
}

.bijoy-converter-credit a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.bijoy-converter-credit a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bijoy-converter-widget {
        padding: 20px 15px;
        margin: 15px;
    }

    .bijoy-converter-title {
        font-size: 24px;
    }

    .bijoy-converter-mode {
        flex-direction: column;
        gap: 10px;
    }

    .bijoy-converter-mode label {
        justify-content: center;
    }

    .bijoy-converter-actions {
        flex-direction: column;
    }

    .bijoy-convert-btn,
    .bijoy-swap-btn,
    .bijoy-clear-btn {
        width: 100%;
        min-width: auto;
    }

    .bijoy-converter-textarea {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bijoy-converter-widget {
        padding: 15px 10px;
        margin: 10px;
    }

    .bijoy-converter-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .bijoy-convert-btn,
    .bijoy-swap-btn,
    .bijoy-clear-btn,
    .bijoy-copy-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .bijoy-converter-widget {
        background: #1e1e1e;
        color: #e0e0e0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .bijoy-converter-title {
        color: #ffffff;
        border-bottom-color: #0096dd;
    }

    .bijoy-converter-mode {
        background: #2a2a2a;
    }

    .bijoy-converter-mode label {
        background: #3a3a3a;
        border-color: #4a4a4a;
        color: #e0e0e0;
    }

    .bijoy-converter-mode label:hover {
        background: #404040;
        border-color: #0096dd;
    }

    .bijoy-converter-textarea {
        background: #2a2a2a;
        border-color: #4a4a4a;
        color: #e0e0e0;
    }

    .bijoy-converter-textarea:focus {
        border-color: #0096dd;
    }

    .bijoy-converter-textarea[readonly] {
        background: #252525;
    }

    .bijoy-converter-input-group label,
    .bijoy-converter-output-group label {
        color: #e0e0e0;
    }

    .bijoy-swap-btn {
        background: #3a3a3a;
        color: #e0e0e0;
    }

    .bijoy-swap-btn:hover {
        background: #4a4a4a;
    }

    .bijoy-converter-credit {
        border-top-color: #3a3a3a;
        color: #999;
    }

    .bijoy-more-tools {
        background: linear-gradient(135deg, #2a2a2a 0%, #353535 100%);
        border-left-color: #0096dd;
    }

    .bijoy-tools-text {
        color: #e0e0e0;
    }

    .bijoy-more-tools a {
        color: #0096dd;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bijoy-converter-message {
    animation: fadeIn 0.3s ease;
}

/* Print Styles */
@media print {
    .bijoy-converter-actions,
    .bijoy-converter-copy,
    .bijoy-converter-mode,
    .bijoy-more-tools {
        display: none;
    }

    .bijoy-converter-widget {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
