/* Import Ubuntu font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* Spinner animation for Tabler icons */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure the spinner animation works on Tabler icons */
.ti.ti-loader {
    animation: spin 1s linear infinite !important;
    display: inline-block;
}

/* Apply Ubuntu font to all elements */
* {
    font-family: 'Ubuntu', sans-serif !important;
}

/* Ensure specific elements also use Ubuntu */
body,
html,
h1, h2, h3, h4, h5, h6,
p, span, div, a,
input, button, label,
.form-control, .form-label,
.btn, .card, .card-body {
    font-family: 'Ubuntu', sans-serif !important;
}

/* Additional styling for better typography */
body {
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.btn {
    font-weight: 500;
}

.form-label {
    font-weight: 500;
}

/* Enhanced Form Styling */
.input-icon-addon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    color: #6c757d;
}

.input-icon .form-control {
    padding-right: 45px;
}

.input-icon .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.select2-container .select2-selection--single {
    height: 45px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 43px !important;
    padding-right: 45px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 43px !important;
}

.select2-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Intl Tel Input Styling */
.iti {
    width: 100%;
}

.iti__country-list {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags.png");
}

.iti__country-list {
    z-index: 1050;
}

.iti__selected-flag {
    background-color: transparent;
    border: none;
    padding: 0 8px;
}

.iti__selected-flag:hover {
    background-color: #f8f9fa;
}

.iti__flag-box {
    margin-right: 6px;
}

.iti__country-name {
    margin-left: 6px;
}

.iti__dial-code {
    color: #999;
    margin-left: 6px;
}

/* Enhanced Card Styling */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none !important;
}

/* Section Icons */
.bg-primary, .bg-success, .bg-info, .bg-warning {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form Control Enhancements */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 2rem !important;
    }
}
.error {
    color: #f46a6a;
}