/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card {
    border: none;
    border-radius: 15px;
}

.navbar {
    background: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar {
    min-height: calc(100vh - 56px);
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: #495057;
    padding: 12px 20px;
    border-radius: 5px;
    margin: 5px 10px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #667eea;
    color: #fff;
}

.content-area {
    padding: 20px;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a91 100%);
}

.card-stat {
    border-left: 4px solid #667eea;
}

.balance-positive {
    color: #28a745;
    font-weight: bold;
}

.balance-negative {
    color: #dc3545;
    font-weight: bold;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .content-area {
        padding: 10px;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

/* Модальное окно напоминания */
.reminder-modal .modal-content {
    border-radius: 15px;
    border: none;
}

.reminder-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

/* FedMod: велика область iframe (у replaced-element height:100% часто ігнорується) */
body.fedmod-superadmin-body .fedmod-page-column {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
}

body.fedmod-superadmin-body .fedmod-above {
    flex-shrink: 0;
}

body.fedmod-superadmin-body .fedmod-iframe-wrap {
    flex: 0 0 auto;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

body.fedmod-superadmin-body .fedmod-iframe {
    display: block;
    width: 100%;
    /* навбар + відступи + блок тексту над iframe + кнопка/примітка під iframe */
    height: clamp(320px, calc(100vh - 56px - 280px), 1400px);
    height: clamp(320px, calc(100dvh - 56px - 280px), 1400px);
    border: 0;
}

body.fedmod-superadmin-body .fedmod-below {
    flex-shrink: 0;
}
