/* Стилизация скролла */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background-color: rgba(107, 114, 128, 0.5); border-radius: 3px; }

/* Размер карты */
#orders-map { height: 300px; margin-bottom: 1rem; border-radius: 0.5rem; }

/* Map container styles for forms */
#form-map {
    height: 256px; /* Matches h-64 in Tailwind */
    width: 100%;
    z-index: 1;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

/* Карточки заявок */
.application-card .card-status,
.application-card .card-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* Статусы заявок */
.status-pending { background-color: #E5E7EB; color: #4B5563; }
.status-active { background-color: #D1FAE5; color: #065F46; }
.status-completed { background-color: #DBEAFE; color: #1E40AF; }
.status-inactive { background-color: #FEF3C7; color: #92400E; }

/* Типы заявок */
.type-sell { background-color: #FEF3C7; color: #92400E; }
.type-buy { background-color: #2563EB; color: #FFFFFF; }

/* Кнопки действий */
.application-card .action-btn {
    font-size: 0.75rem;
    cursor: pointer;
}

.action-btn:hover {
    text-decoration: underline;
}

/* Пагинация */
.pagination a {
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    margin: 0 0.25rem;
}

.pagination a.active {
    background-color: #2563EB;
    color: #FFFFFF;
}

.pagination a:not(.active) {
    background-color: #E5E7EB;
    color: #4B5563;
}

.pagination a:hover:not(.active) {
    background-color: #D1D5DB;
}

/* Принудительное отображение карточек */
.application-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Form improvements */
.form-radio {
    margin-right: 0.375rem;
}

select,
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
textarea {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Disabled option styles */
select option[style*="display: none"] {
    display: none !important;
}

/* Loading state for dropdowns */
select.loading {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg width="20" height="20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg%3E%3Ccircle cx="10" cy="10" r="8" stroke="%23ddd" stroke-width="2" fill="none" /%3E%3Ccircle cx="10" cy="10" r="8" stroke="%233b82f6" stroke-width="2" fill="none" stroke-dasharray="20 30" stroke-linecap="round"%3E%3CanimateTransform attributeName="transform" type="rotate" from="0 10 10" to="360 10 10" dur="1s" repeatCount="indefinite"/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5rem;
}

/* Map loading overlay */
.map-loading {
    position: relative;
}

.map-loading::after {
    content: 'Загрузка карты...';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6b7280;
}

/* Error states */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success states */
.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}