/* ===========================================
   YASMINA TOUR CORPORATE STYLE
   Корпоративные цвета: #c62828
   =========================================== */

:root {
    --yasmina-primary: #c62828;
    --yasmina-primary-dark: #8b1a1a;
    --yasmina-secondary: #333333;
    --yasmina-light: #f8f9fa;
    --yasmina-text: #333333;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f7f8fc;
    color: #2c3e50;
    line-height: 1.5;
}

/* Корпоративная навигация */
.yasmina-navbar {
    background: linear-gradient(135deg, var(--yasmina-primary) 0%, var(--yasmina-primary-dark) 100%);
    border-bottom: 3px solid var(--yasmina-primary-dark);
    box-shadow: 0 2px 10px rgba(198, 40, 40, 0.3);
}

.yasmina-brand {
    color: white !important;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.yasmina-brand:hover {
    color: #f0f0f0 !important;
}

.yasmina-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Корпоративные кнопки */
.btn-yasmina {
    background-color: var(--yasmina-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-yasmina:hover {
    background-color: var(--yasmina-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

/* Корпоративные карточки */
.yasmina-card {
    border: 1px solid #ffffff;
    border-radius: 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.yasmina-card:hover {
    border-color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.yasmina-card-header {
    background-color: #f8f9fa;
    color: #333333;
    font-weight: 600;
    padding: 16px 20px;
    border-radius: 3px 3px 0 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Footer */
.yasmina-footer {
    background-color: var(--yasmina-secondary);
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

/* Заголовки */
.yasmina-title {
    color: var(--yasmina-primary);
    font-weight: bold;
    margin-bottom: 20px;
}

/* Статистические карточки */
.yasmina-stat-card,
.yasmina-card {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.yasmina-stat-card:hover,
.yasmina-card:hover {
    border-color: #f0f0f0 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Дополнительные отступы для содержимого карточек */
.card-body {
    padding: 20px !important;
}

.card-body.p-0 {
    padding: 0 !important;
}

.card-body.py-3 {
    padding: 16px 20px !important;
}

.card-body.p-4 {
    padding: 24px !important;
}

/* Обычные Bootstrap карточки */
.card {
    border: 1px solid #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
}

.card:hover {
    border-color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

.yasmina-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.yasmina-stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* Дополнительные стили для бизнес-платформы */
.card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    padding: 16px 20px !important;
}

.table {
    margin-bottom: 0 !important;
}

.table th {
    border-top: none !important;
    font-weight: 600 !important;
    color: #495057 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.3px !important;
    background-color: #f8f9fa !important;
}

.table td {
    font-size: 0.9rem !important;
    color: #495057 !important;
    vertical-align: middle !important;
}

.badge {
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    padding: 0.375rem 0.75rem !important;
}

/* Улучшенные кнопки */
.btn {
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    border-radius: 4px !important;
}

/* Отступы внутри карточек */
.card-body {
    padding: 20px !important;
}

.card-body.p-0 {
    padding: 0 !important;
}

.card-body.py-3 {
    padding: 16px 20px !important;
}

.card-body.p-4 {
    padding: 24px !important;
}


/* ===========================================
   ACCOMMODATION & TRANSPORT MANAGER
   =========================================== */

.accommodations-section, .departures-section { margin-top: 2rem; margin-bottom: 2rem; }
.accommodation-card { position: relative; transition: box-shadow 0.3s ease; }
.accommodation-card:hover { box-shadow: 0 4px 12px rgba(198, 40, 40, 0.15); }
.accommodation-card .card-header { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-bottom: 2px solid var(--yasmina-primary); font-weight: 600; color: var(--yasmina-text); }
.accommodation-card .card-body { background-color: #ffffff; }
.transport-section { background-color: #f8f9fa; padding: 1rem; border-radius: 8px; border-left: 3px solid var(--yasmina-primary); }
.transports-container { min-height: 50px; }
.transport-card .card { border: 1px solid #dee2e6; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); transition: all 0.2s ease; }
.transport-card .card:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); transform: translateY(-1px); }
.transport-card .card-body { padding: 1rem !important; }
.transport-number { color: var(--yasmina-primary); font-weight: 600; font-size: 0.95rem; }
.accommodation-number { color: var(--yasmina-primary); font-size: 1.1rem; }
.departures-container { background-color: #f8f9fa; padding: 1.5rem; border-radius: 8px; border: 1px solid #dee2e6; }
.departure-item { background-color: white; padding: 0.5rem; border-radius: 4px; border: 1px solid #e9ecef; }

/* ===========================================
   ACTION CARDS (Dashboard Quick Actions)
   =========================================== */

.yasmina-action-card {
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.yasmina-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #f0f0f0;
}

.yasmina-action-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    transition: all 0.3s ease;
}

.yasmina-action-card:hover .yasmina-action-icon {
    transform: scale(1.1);
}

.yasmina-action-title {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.yasmina-action-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Иконки статистики */
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

.stat-icon.bg-yasmina {
    background: var(--yasmina-primary);
    box-shadow: none;
}

/* Цвета иконок */
.yasmina-action-icon.bg-primary { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.yasmina-action-icon.bg-success { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.yasmina-action-icon.bg-info { background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%); }
.yasmina-action-icon.bg-warning { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); }
.yasmina-action-icon.bg-danger { background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%); }

/* Стили для ровного размещения всех карточек */
.row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.row.g-4 > [class*="col-"] {
    display: flex;
}

.row.g-4 > [class*="col-"] > a,
.row.g-4 > [class*="col-"] > div {
    width: 100%;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.status-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.min-width-0 {
    min-width: 0;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-yasmina {
    color: var(--yasmina-secondary);
}

.bg-yasmina {
    background-color: var(--yasmina-primary);
    color: white;
}

.border-yasmina {
    border-color: var(--yasmina-primary);
}

.btn-outline-yasmina {
    color: #333 !important;
    border: none !important;
    background-color: transparent !important;
}

.btn-outline-yasmina:hover {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border: none !important;
}

/* Remove borders from all outline buttons */
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success,
.btn-outline-primary,
.btn-outline-warning,
.btn-outline-info {
    border: none !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-danger:hover,
.btn-outline-success:hover,
.btn-outline-primary:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover {
    border: none !important;
    background-color: #f0f0f0 !important;
}

/* Form controls */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control:focus, 
.form-select:focus {
    border-color: var(--yasmina-primary);
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25);
}

/* Login Button Loading State */
.btn .loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .loading {
    display: inline-block;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

/* Мобильные устройства */
@media (max-width: 576px) {
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .card-title.h6 {
        font-size: 1rem;
    }
    
    .card-text.small {
        font-size: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .d-none-xs {
        display: none !important;
    }
}

/* Планшеты */
@media (max-width: 768px) {
    .list-group-item {
        padding: 0.75rem 1rem;
    }
    
    .avatar-sm {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

/* Улучшенная адаптивность для планшетов */
@media (min-width: 768px) and (max-width: 991px) {
    .col-md-3 .card-body {
        padding: 1rem 0.75rem;
    }
}

/* Hover эффекты только для не-touch устройств */
@media (hover: hover) {
    .yasmina-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(198, 40, 40, 0.1);
        transition: all 0.3s ease;
    }
    
    .btn:hover {
        transform: translateY(-1px);
        transition: all 0.2s ease;
    }
}

/* ===========================================
   LOGIN PAGE STYLES
   =========================================== */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--yasmina-primary) 0%, var(--yasmina-primary-dark) 100%);
    padding: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.login-header .logo {
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.login-header .subtitle {
    font-size: 1rem;
    opacity: 0.9;
    color: white;
}

.login-body {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 360px;
}

.login-body .form-group {
    margin-bottom: 20px;
}

.login-body .input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.login-body .input-group i {
    position: absolute;
    left: 15px;
    color: #6c757d;
    z-index: 10;
}

.login-body .input-group .form-control {
    padding-left: 45px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    height: 48px;
}

.login-body .input-group .form-control:focus {
    border-color: var(--yasmina-primary);
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25);
}

.login-body .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.login-body .remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.login-body .remember-me label {
    margin: 0;
    font-size: 0.9rem;
    cursor: pointer;
}

.login-body .btn-yasmina {
    width: 100%;
    height: 48px;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Login Button States */
.login-body .btn .btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-body .btn .loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-body .btn.loading .btn-text {
    visibility: hidden;
}

.login-body .btn.loading .loading {
    display: block;
}

@media (max-width: 576px) {
    .login-body {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
}

/* Breadcrumbs - корпоративный стиль */
.breadcrumb-item a {
    color: var(--yasmina-text) !important;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--yasmina-primary) !important;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--yasmina-text) !important;
}

/* Nav Tabs - корпоративный стиль */
.nav-tabs .nav-link {
    color: var(--yasmina-text) !important;
    border: none !important;
    background-color: transparent !important;
}

.nav-tabs .nav-link:hover {
    color: var(--yasmina-primary) !important;
    border-bottom: 2px solid var(--yasmina-primary) !important;
}

.nav-tabs .nav-link.active {
    color: var(--yasmina-primary) !important;
    border-bottom: 2px solid var(--yasmina-primary) !important;
    background-color: transparent !important;
    font-weight: 600;
}
