/* Custom styles for Kvant */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.btn {
    border-radius: 0.375rem;
}

.form-control, .form-select {
    border-radius: 0.375rem;
}

/* Dashboard cards */
.card.bg-primary, .card.bg-success, .card.bg-warning, .card.bg-info {
    border-radius: 1rem;
}

.card.bg-primary .card-title,
.card.bg-success .card-title,
.card.bg-warning .card-title,
.card.bg-info .card-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alert */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Tables */
.table {
    background-color: white;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
}

/* intl-tel-input customization */
.iti {
    width: 100%;
}

.iti__flag-container {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
}

.iti__selected-flag {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem 0 0 0.375rem;
}

.iti__country-list {
    z-index: 1050;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.iti__country {
    padding: 0.5rem 0.75rem;
}

.iti__country:hover {
    background-color: #f8f9fa;
}

.iti__country.iti__highlight {
    background-color: #0d6efd;
    color: white;
}

/* Phone input styling */
#phone {
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
}

#phone:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Validation states */
#phone.is-valid {
    border-color: #198754;
}

#phone.is-invalid {
    border-color: #dc3545;
}

/* Readonly email field */
#email[readonly] {
    background-color: #f8f9fa !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

/* Password strength indicator */
#password-strength .progress {
    border-radius: 0.25rem;
    background-color: #e9ecef;
}

#password-requirements .requirement {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

#password-requirements .requirement.text-success {
    font-weight: 500;
}

#password-match {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Password toggle button */
#togglePassword {
    border-left: none;
}

#togglePassword:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* Flag Icons styling */
.fi {
    width: 20px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.fi-xx {
    background: linear-gradient(45deg, #ccc, #999);
    border-radius: 2px;
}


