/* 
Custom styles for Co-operative Bank of Tanzania registration form
Version: 1.0
*/

/* Cropper modal styles */
.img-container {
    width: 100%;
    height: auto;
    max-height: 80vh;
    margin: 0;
    overflow: hidden;
    padding: 0;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Make cropper responsive and touch-friendly */
.cropper-container {
    max-width: 100% !important;
}

.cropper-container.cropper-bg {
    background-image: none !important;
}

/* Style the crop box corners to match the screenshot */
.cropper-point {
    width: 14px !important;
    height: 14px !important;
    background-color: #0d6efd !important;
    opacity: 1 !important;
}

/* Ensure crop area is square */
.cropper-view-box,
.cropper-face {
    border-radius: 0;
}

/* Style the modal to match the screenshot */
#cropperModal .modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: white;
}

#cropperModal .modal-header {
    border-bottom: none;
    padding: 1rem;
}

#cropperModal .modal-body {
    padding: 0;
}

#cropperModal .modal-footer {
    border-top: none;
    padding: 1rem;
    justify-content: space-between;
}

#cropperModal .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
}

#cropperModal .btn-secondary {
    background-color: transparent;
    color: #6c757d;
    border: none;
    box-shadow: none;
}

/* Make modal match the screenshot */
#cropperModal .modal-dialog {
    margin: 1.75rem auto;
    max-width: 90%;
    width: 700px;
}

/* Fix positioning on small screens */
@media (max-width: 767px) {
    #cropperModal .modal-dialog {
        margin: 0.5rem;
        max-width: 95%;
        width: auto;
    }
}

/* Preview image styling */
#croppedImagePreview {
    border: 2px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Error messages */
.invalid-feedback {
    font-size: 0.85rem;
}

/* Form focus styles */
.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Loading state for button */
.btn:disabled {
    cursor: not-allowed;
} 