/**
 * Azure Integration Styles
 * Location: static/cloud_hosting/css/azure.css
 * 
 * BEM Methodology:
 * .azure-connection {}              - Main container
 * .azure-connection__form {}        - Form element
 * .azure-connection__instructions {} - Instructions block
 * .azure-connection__input {}       - Input styling
 */

/* Main Container */
.azure-connection {
    margin-top: 2rem;
}

/* Form Styling */
.azure-connection__form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.azure-connection__form textarea.form-control {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    background-color: #fff;
}

.azure-connection__form textarea.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Input Fields */
.azure-connection__input {
    margin-bottom: 1.5rem;
}

.azure-connection__input label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.azure-connection__input .form-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Instructions Block */
.azure-connection__instructions {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.25rem;
}

.azure-connection__instructions h6 {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 1rem;
}

.azure-connection__instructions ol li {
    margin-bottom: 1rem;
}

.azure-connection__instructions code {
    background-color: #f8f9fa;
    color: #d63384;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    word-break: break-all;
}

/* Alert Boxes */
.azure-connection .alert {
    border-radius: 0.375rem;
}

.azure-connection .alert-info {
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    color: #084298;
}

.azure-connection .alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.azure-connection .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* Connection Status Badge */
.azure-connection__status {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.azure-connection__status--connected {
    background-color: #d1e7dd;
    color: #0f5132;
}

.azure-connection__status--disconnected {
    background-color: #f8d7da;
    color: #842029;
}

.azure-connection__status--pending {
    background-color: #fff3cd;
    color: #664d03;
}

/* Buttons */
.azure-connection__btn-connect {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.azure-connection__btn-connect:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.azure-connection__btn-connect:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Security Card */
.azure-connection__security {
    border-left: 4px solid #198754;
    background-color: #f0f9f6;
}

.azure-connection__security h6 {
    color: #198754;
    font-weight: 600;
}

.azure-connection__security li {
    padding-left: 0.5rem;
    color: #198754;
}

/* Tips Card */
.azure-connection__tips {
    border-left: 4px solid #0d6efd;
    background-color: #f0f5ff;
}

.azure-connection__tips h6 {
    color: #0d6efd;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .azure-connection__form {
        padding: 1.5rem;
    }
    
    .azure-connection__instructions {
        padding: 1rem;
    }
    
    .azure-connection__btn-connect {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}

/* Code Block Styling */
pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
}

pre code {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
}