/* ===== ОБЩИЕ СТИЛИ ДЛЯ ВСЕГО САЙТА ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #4895ef;
    --secondary-color: #3f37c9;
    --success-color: #4cc9a8;
    --success-dark: #3bb592;
    --danger-color: #f72585;
    --danger-dark: #e01e7a;
    --warning-color: #f8961e;
    --warning-dark: #e0851a;
    --dark-color: #1e1e2f;
    --dark-light: #2d2d44;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #495057;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #4cc9a8 0%, #3bb592 100%);
    --gradient-warning: linear-gradient(135deg, #f8961e 0%, #f3722c 100%);
    --gradient-danger: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
}

/* ===== СТРАНИЦА ВХОДА (login.php) ===== */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #fcc;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #a5d6a7;
}

.info-text {
    text-align: center;
    margin-top: 20px;
    color: #777;
    font-size: 14px;
}

.info-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.info-text a:hover {
    text-decoration: underline;
}

/* ===== ГЛАВНАЯ СТРАНИЦА (index.php) ===== */
body.main-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.navbar {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.username {
    color: #333;
    font-weight: 500;
}

.logout-btn {
    background: #ff4757;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #ff6b81;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.welcome-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.welcome-card h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 36px;
}

.user-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: left;
}

.user-details h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.user-details p {
    color: #555;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 5px;
}

/* ===== СТРАНИЦА РЕГИСТРАЦИИ ===== */
.register-container {
    max-width: 450px;
}

.login-link {
      display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 20px; /* отступ между ссылками, если они обе видны */
}

.register-link {
    margin-left: auto; /* прижимает ссылку на регистрацию вправо */
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #555;
}
.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}
.login-link a:hover {
    text-decoration: underline;
}

/* ===== КАРТОЧКИ ДЛЯ ОТЧЁТОВ ===== */
.report-section {
    margin-top: 40px;
}

.report-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.report-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    width: 250px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.report-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.report-card .emoji {
    font-size: 48px;
    margin-bottom: 15px;
}

.report-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.report-card p {
    color: #666;
    font-size: 14px;
}

.report-card.client {
    border-top: 5px solid #667eea;
}

.report-card.hosting {
    border-top: 5px solid #764ba2;
}

.login-links {
    margin-top: 20px;
    text-align: center;
}
.login-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.login-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ===== РАЗДЕЛ КЛИЕНТЫ ===== */

/* Контейнер списка клиентов */
.clients-section {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(5px);
}

.clients-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--dark-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

/* Сетка карточек клиентов */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Карточка клиента */
.client-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.btn-delete-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-danger);
    color: white;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.client-card:hover .btn-delete-icon {
    opacity: 1;
}

.btn-delete-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
}

.client-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 600;
}

.client-card p {
    color: var(--gray-dark);
    margin: 5px 0;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-card p i {
    width: 20px;
    color: var(--primary-color);
}

.client-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.client-actions a {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9em;
}

.btn-view {
    background: var(--gradient-primary);
    color: white;
}

.btn-view:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-delete {
    background: var(--gradient-danger);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-delete:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
}

/* Форма добавления нового клиента */
.add-client-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
    border: 2px dashed var(--primary-color);
}

.add-client-form h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    transition: var(--transition);
    background: var(--light-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
    background: white;
}

.btn-submit {
    background: var(--gradient-success);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Список клиентов (альтернативный, если не нужны карточки) */
.clients-list {
    list-style: none;
    padding: 0;
}

.clients-list li {
    background: white;
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.clients-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.clients-list a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-meta {
    color: var(--gray-color);
    font-size: 0.9em;
}

/* Страница отчётов клиента */
.client-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.client-header h1 {
    margin: 0;
    font-size: 2em;
}

.reports-list {
    margin-top: 40px;
}

.reports-list h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 10px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.report-item {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.report-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.report-item a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.report-icon {
    font-size: 2em;
    color: var(--primary-color);
}

.report-date {
    font-size: 0.85em;
    color: var(--gray-color);
}

/* Стили для radio-кнопок */
.client-type-selector {
    margin-bottom: 20px;
}
.client-type-selector label {
    margin-right: 20px;
    font-weight: normal;
    cursor: pointer;
}
.client-type-selector input[type="radio"] {
    margin-right: 5px;
    transform: scale(1.1);
}

/* ===== КНОПКА НАЗАД ===== */
.back-to-main {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.back-to-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a3f9c 100%);
}

/* Центрирование кнопки в навбаре — реализовано ниже через flex (см. .navbar-center) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-manage {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 20px 0;
}

.btn-manage:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.report-card.clients {
    border-top: 5px solid #4cc9a8; /* зелёный */
}

.report-card.hostings-db {
    border-top: 5px solid #f8961e; /* оранжевый */
}

.btn-generate {
    background: linear-gradient(135deg, #4cc9a8 0%, #3bb592 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}
.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 201, 168, 0.4);
}

/* Стили для хлебных крошек (путь) */
.path-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: var(--box-shadow);
    border: 2px dashed var(--primary-color);
    flex-wrap: wrap;
    gap: 15px;
}

.path-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.path-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.path-links a:hover {
    text-decoration: underline;
}

.separator {
    color: var(--gray-color);
    margin: 0 5px;
}

/* Навбар с тремя колонками */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.navbar-left, .navbar-right {
    flex: 1; /* левая и правая колонки занимают равное пространство */
}

.navbar-left {
    text-align: left;
}

.navbar-right {
    text-align: right;
}

.navbar-center {
    flex: 0 0 auto; /* центральная колонка не растягивается */
    text-align: center;
}

/* Кнопка "Назад" (стили уже могут быть, но на всякий случай) */
.back-to-main {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.back-to-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.client-card {
    cursor: pointer;
}

/* Бейджи типов клиентов (используются в clients.php и hosting_detail.php) */
.client-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}
.client-type-badge.individual {
    background: var(--primary-light);
    color: white;
}
.client-type-badge.legal {
    background: var(--success-color);
    color: white;
}
.client-type-badge.entrepreneur {
    background: var(--warning-color);
    color: white;
}

.profile-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.profile-link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* ========== МОДУЛЬ 2: Квартальные отчёты ========== */
.section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.operator-type-switch {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.site-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}
.site-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4895ef;
}
.miner-card {
    background: rgba(67, 97, 238, 0.05);
    border-left: 4px solid #4361ee;
    padding: 15px;
    margin-top: 15px;
    border-radius: 12px;
}
.equipment-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.equipment-field {
    flex: 1;
    min-width: 150px;
}
.empty-hint {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 12px;
    font-style: italic;
}
.generate-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.generate-buttons .btn-large {
    flex: 1;
    min-width: 200px;
}
.btn-icon-sm {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    width: 32px;
    height: 32px;
}
.btn-danger-sm {
    color: #f72585;
}
.btn-danger-sm:hover {
    background: #f72585;
    color: white;
}

/* Компактные кнопки для блока майнинга */
.site-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-icon-sm {
    background: rgba(67, 97, 238, 0.1);
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sm:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-danger-sm {
    background: rgba(247, 37, 133, 0.1);
    color: var(--danger-color);
}

.btn-danger-sm:hover {
    background: var(--danger-color);
    color: white;
}

/* ===================================================================== */
/* СТИЛИ СТРАНИЦ ОТЧЁТОВ (бывший styles.css)                              */
/* Применяются только внутри элементов с классом .report-page,           */
/* который навешан на <body> страниц: client_report.php,                  */
/* client_reports.php, quarter_report.php                                */
/* ===================================================================== */

.report-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.report-page .container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 1000px;
    transition: var(--transition);
}

.report-page .container:hover {
    box-shadow: var(--box-shadow-hover);
}

.report-page h1 {
    font-size: 2.2em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.report-page h2 {
    font-size: 1.4em;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-light);
    display: inline-block;
    font-weight: 600;
}

.report-page .subtitle {
    text-align: center;
    color: var(--gray-color);
    font-size: 1.1em;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--gray-light);
}

.report-page .subtitle small {
    color: var(--gray-dark);
    font-size: 0.9em;
    display: block;
    margin-top: 8px;
}

.report-page .back-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 20px;
}

.report-page .back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.report-page .back-button:hover {
    transform: translateX(-5px);
    box-shadow: var(--box-shadow-hover);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

.report-page .back-icon {
    font-size: 1.4em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.report-page .back-button:hover .back-icon {
    transform: translateX(-3px);
}

.report-page .back-text {
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
.report-page .back-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

.report-page .back-icon {
        font-size: 1.2em;
    }

}

.report-page .upload-section {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 2px dashed var(--primary-color);
    transition: var(--transition);
}

.report-page .upload-section:hover {
    border-color: var(--primary-dark);
    background: white;
}

.report-page .file-upload {
    margin-bottom: 15px;
}

.report-page .file-label {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.report-page .file-label:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-dark);
}

.report-page .file-icon {
    font-size: 3em;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
}

.report-page .file-input {
    display: none;
}

.report-page .upload-hint {
    font-size: 0.9em;
    color: var(--gray-color);
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: var(--border-radius-sm);
}

.report-page .fileid-section {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe5cc 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 2px solid var(--warning-color);
    position: relative;
    transition: var(--transition);
}

.report-page .fileid-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.report-page .fileid-section h2 {
    color: var(--warning-dark);
    border-bottom-color: var(--warning-color);
}

.report-page .fileid-section input {
    border: 2px solid var(--warning-color);
    background: white;
    font-family: 'Courier New', monospace;
    font-size: 1em;
}

.report-page .fileid-section input:focus {
    border-color: var(--warning-dark);
    box-shadow: 0 0 0 4px rgba(248, 150, 30, 0.2);
}

.report-page .fileid-section .hint {
    color: var(--warning-dark);
}

.report-page .fileid-info {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--warning-color);
    border-radius: var(--border-radius-sm);
    padding: 15px 20px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
}

.report-page .fileid-info p {
    margin: 0;
    font-size: 1em;
    color: var(--warning-dark);
}

.report-page .fileid-info strong {
    color: var(--warning-dark);
    font-size: 1.1em;
    margin-left: 5px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
}

.report-page .wallet-section {
    background: linear-gradient(135deg, #e6f3ff 0%, #b8d9ff 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 2px solid var(--primary-light);
    position: relative;
    transition: var(--transition);
}

.report-page .wallet-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.report-page .wallet-section h2 {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-light);
}

.report-page .wallets-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.report-page .wallet-select-item {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--primary-light);
    transition: var(--transition);
}

.report-page .wallet-select-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.report-page .wallet-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1em;
}

.report-page .wallet-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.report-page .wallet-address {
    flex: 2;
    min-width: 200px;
    padding: 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    background: var(--light-color);
    transition: var(--transition);
}

.report-page .wallet-address:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
    background: white;
}

.report-page .wallet-coin-select {
    flex: 1;
    min-width: 140px;
    padding: 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--dark-color);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234361ee' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.report-page .wallet-coin-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}

.report-page .wallet-coin-select:hover {
    border-color: var(--primary-color);
}

.report-page .wallet-coin-select option {
    padding: 10px;
    font-weight: 500;
}

.report-page .btn-save-wallet {
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    width: 45px;
    height: 45px;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.report-page .btn-save-wallet:hover {
    transform: scale(1.1);
    box-shadow: var(--box-shadow);
}

.report-page .btn-save-wallet:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.report-page .btn-remove-wallet {
    background: var(--gradient-danger);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    width: 45px;
    height: 45px;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.report-page .btn-remove-wallet:hover {
    transform: scale(1.1);
    box-shadow: var(--box-shadow);
}

.report-page .add-wallet-btn-container {
    margin-top: 5px;
    text-align: center;
}

.report-page .add-wallet-btn-container .btn-secondary {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.report-page .add-wallet-btn-container .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.report-page .wallets-info {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    padding: 15px 20px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
}

.report-page .wallets-info p {
    margin: 0;
    font-size: 1em;
    color: var(--primary-dark);
}

.report-page .wallets-info strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: var(--primary-dark);
    font-size: 0.95em;
    margin-left: 5px;
    word-break: break-all;
}

.report-page .wallet-badge {
    display: inline-block;
    background: #e6f7e6;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 3px;
    font-size: 0.85em;
    font-family: monospace;
    border: 1px solid #90ee90;
    word-break: break-all;
    max-width: 350px;
}

.report-page .wallet-badge .badge-coin {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 1px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 6px;
    font-weight: 600;
}

@media (max-width: 768px) {
.report-page .wallet-controls {
        flex-direction: column;
        align-items: stretch;
    }

.report-page .wallet-address {
        width: 100%;
        min-width: auto;
    }

.report-page .wallet-coin-select {
        width: 100%;
        min-width: auto;
    }

.report-page .btn-save-wallet, .report-page .btn-remove-wallet {
        align-self: flex-end;
    }

.report-page .wallet-badge {
        max-width: 100%;
        font-size: 0.75em;
    }

.report-page .wallet-section {
        padding: 20px;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
.report-page .wallet-address {
        min-width: 160px;
    }

.report-page .wallet-coin-select {
        min-width: 120px;
    }

}

.report-page .coins-section {
    background: linear-gradient(135deg, #f3e5ff 0%, #e1c4ff 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 2px solid #9d4edd;
    position: relative;
    transition: var(--transition);
}

.report-page .coins-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.report-page .coins-section h2 {
    color: #7b2cbf;
    border-bottom-color: #9d4edd;
}

.report-page .coins-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.report-page .coin-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    border: 2px solid #9d4edd;
    flex-wrap: wrap;
    transition: var(--transition);
}

.report-page .coin-select-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.report-page .coin-select {
    flex: 2;
    min-width: 180px;
    padding: 12px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.report-page .coin-select:focus {
    border-color: #9d4edd;
    outline: none;
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2);
}

.report-page .coin-amount {
    width: 180px;
    padding: 12px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    background: white;
    transition: var(--transition);
}

.report-page .coin-amount:focus {
    border-color: #9d4edd;
    outline: none;
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2);
}

.report-page .btn-add-coin {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    width: 45px;
    height: 45px;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.report-page .btn-add-coin:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--box-shadow);
}

.report-page .btn-remove-coin {
    background: var(--gradient-danger);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    width: 45px;
    height: 45px;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.report-page .btn-remove-coin:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--box-shadow);
}

.report-page .btn-save-coin {
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    width: 45px;
    height: 45px;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.report-page .btn-save-coin:hover {
    transform: scale(1.1);
    box-shadow: var(--box-shadow);
}

.report-page .btn-save-coin:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.report-page .save-message {
    display: inline-block;
    animation: slideIn 0.3s ease, fadeOut 2s forwards 0.3s;
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.report-page .selected-coins-info {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 2px solid #9d4edd;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.report-page .selected-coins-info span {
    color: var(--dark-color);
    font-size: 1.1em;
}

.report-page .selected-coins-info strong {
    color: #7b2cbf;
    margin-left: 8px;
    font-size: 1.2em;
    background: #f3e5ff;
    padding: 4px 12px;
    border-radius: 20px;
}

.report-page .manual-section {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 2px solid var(--gray-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.report-page .manual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.report-page .manual-section:hover {
    box-shadow: var(--box-shadow);
}

.report-page .form-group {
    margin-bottom: 25px;
}

.report-page label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1em;
}

.report-page .hint {
    font-size: 0.85em;
    color: var(--gray-color);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-page .hint::before {
    content: '💡';
    font-size: 1.1em;
}

.report-page input[type="text"], .report-page input[type="number"] {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    transition: var(--transition);
    background: var(--light-color);
}

.report-page input[type="text"]:hover, .report-page input[type="number"]:hover {
    border-color: var(--primary-color);
}

.report-page input[type="text"]:focus, .report-page input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
    background: white;
}

.report-page select {
    width: 100%;
    padding: 14px 40px 14px 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    transition: var(--transition);
    background-color: var(--light-color);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234361ee' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    cursor: pointer;
}

.report-page select:hover {
    border-color: var(--primary-color);
}

.report-page select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
    background-color: white;
}

.report-page .button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.report-page button {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.report-page .btn-primary {
    background: var(--gradient-primary);
    color: white;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.report-page .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.report-page .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.report-page .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.report-page .btn-primary:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    opacity: 0.7;
}

.report-page .btn-secondary {
    background: var(--gray-light);
    color: var(--dark-color);
}

.report-page .btn-secondary:hover {
    background: var(--gray-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.report-page .btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.report-page .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.report-page .btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.report-page .btn-large {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    letter-spacing: 1px;
}

.report-page .data-table-section {
    margin-bottom: 30px;
}

.report-page .table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-page .record-count {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1em;
    background: rgba(67, 97, 238, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

.report-page .table-container {
    max-height: 350px;
    overflow-y: auto;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    background: white;
}

.report-page table {
    width: 100%;
    border-collapse: collapse;
}

.report-page thead {
    background: var(--gradient-primary);
    position: sticky;
    top: 0;
    color: white;
}

.report-page th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 1em;
}

.report-page td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.report-page tr:hover {
    background: rgba(67, 97, 238, 0.05);
}

.report-page .btn-icon {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.report-page .btn-icon:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

.report-page .wallet-info {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 20px 25px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.report-page .wallet-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.report-page .wallet-info p {
    margin: 8px 0;
    font-size: 1.1em;
    color: var(--dark-color);
}

.report-page .wallet-info strong {
    color: var(--success-dark);
    font-size: 1.2em;
    margin-left: 8px;
    word-break: break-all;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
}

.report-page .system-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--success-color);
}

.report-page .system-stats p {
    margin: 12px 0;
    font-size: 1.1em;
    color: var(--dark-color);
}

.report-page .system-stats strong {
    color: var(--success-dark);
    font-size: 1.2em;
    margin-left: 8px;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
}

.report-page .coins-stats {
    margin-top: 15px;
    padding-left: 20px;
}

.report-page .coin-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    padding: 8px 12px;
    background: white;
    border-radius: 30px;
    transition: var(--transition);
}

.report-page .coin-stat:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.report-page .coin-stat strong {
    color: var(--success-dark);
    font-family: 'Courier New', monospace;
    background: #d4edda;
    padding: 4px 12px;
    border-radius: 20px;
}

.report-page .coin-stat.empty {
    color: var(--gray-color);
    font-style: italic;
    background: white;
    padding: 12px;
    border-radius: 30px;
}

.report-page .generate-section {
    margin-bottom: 30px;
}

.report-page .result {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 3px solid var(--success-color);
    border-radius: var(--border-radius-lg);
    display: none;
    transition: var(--transition);
}

.report-page .result:hover {
    box-shadow: var(--box-shadow);
}

.report-page .result-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.report-page .result-header h3 {
    flex: 1;
    color: var(--success-dark);
    margin: 0;
    font-size: 1.4em;
}

.report-page .xml-output {
    width: 100%;
    min-height: 350px;
    padding: 0;
    background: var(--dark-color);
    color: #4cc9a8;
    border: 2px solid var(--success-color);
    border-radius: var(--border-radius-sm);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    max-height: 450px;
    overflow-y: auto;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.report-page .xml-output pre {
    margin: 0;
    padding: 25px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #4cc9a8;
    background: transparent;
    font-family: inherit;
}

.report-page .note {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--success-color);
    color: var(--success-dark);
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-page .note::before {
    content: '⚡';
    font-size: 1.3em;
}

.report-page .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.report-page .loading-spinner {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.report-page .spinner {
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
.report-page {
        padding: 15px;
    }

.report-page .container {
        padding: 20px;
    }

.report-page h1 {
        font-size: 1.8em;
    }

.report-page h2 {
        font-size: 1.2em;
    }

.report-page .back-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

.report-page .back-icon {
        font-size: 1.2em;
    }

.report-page .file-label {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

.report-page .coin-select-item {
        flex-direction: column;
        align-items: stretch;
    }

.report-page .coin-select {
        width: 100%;
        min-width: auto;
    }

.report-page .coin-amount {
        width: 100%;
    }

.report-page .btn-icon {
        align-self: flex-end;
    }

.report-page .button-group {
        flex-direction: column;
    }

.report-page .result-header {
        flex-direction: column;
        text-align: center;
    }

.report-page .result-header button {
        width: 100%;
    }

.report-page .selected-coins-info {
        flex-direction: column;
        gap: 15px;
    }

.report-page .wallet-info {
        text-align: center;
    }

.report-page .wallet-info strong {
        display: block;
        margin-top: 8px;
        margin-left: 0;
    }

.report-page .table-controls {
        flex-direction: column;
        gap: 10px;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
.report-page .container {
        max-width: 90%;
        padding: 30px;
    }

.report-page .coin-select-item {
        gap: 8px;
    }

.report-page .coin-select {
        min-width: 140px;
    }

.report-page .coin-amount {
        width: 140px;
    }

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-page .upload-section, .report-page .fileid-section, .report-page .wallet-section, .report-page .coins-section, .report-page .manual-section, .report-page .data-table-section, .report-page .wallet-info, .report-page .generate-section {
    animation: fadeIn 0.6s ease forwards;
}

.report-page ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.report-page ::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

.report-page ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    transition: var(--transition);
}

.report-page ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.report-page ::selection {
    background: var(--primary-color);
    color: white;
}

.report-page .energy-section {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 2px solid #10b981;
    position: relative;
    transition: var(--transition);
}

.report-page .energy-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.report-page .energy-section h2 {
    color: #047857;
    border-bottom-color: #10b981;
    margin-bottom: 20px;
}

.report-page .energy-container {
    margin-bottom: 15px;
}

.report-page .energy-input-item {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 2px solid #10b981;
    transition: var(--transition);
}

.report-page .energy-input-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.report-page .energy-label {
    font-weight: 600;
    color: #047857;
    margin-bottom: 10px;
    font-size: 1em;
}

.report-page .energy-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.report-page .energy-input {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1.1em;
    background: var(--light-color);
    transition: var(--transition);
}

.report-page .energy-input:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    background: white;
}

.report-page .energy-input:hover {
    border-color: #10b981;
}

.report-page .btn-save-energy {
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    width: 45px;
    height: 45px;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.report-page .btn-save-energy:hover {
    transform: scale(1.1);
    box-shadow: var(--box-shadow);
}

.report-page .btn-save-energy:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.report-page .energy-section .hint {
    color: #047857;
    margin-top: 10px;
}

.report-page .energy-info {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #10b981;
    border-radius: var(--border-radius-sm);
    padding: 15px 20px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
}

.report-page .energy-info p {
    margin: 0;
    font-size: 1.1em;
    color: #047857;
}

.report-page .energy-info strong {
    color: #047857;
    font-size: 1.2em;
    margin-left: 8px;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
}

.report-page .save-message-energy {
    display: inline-block;
    animation: slideIn 0.3s ease, fadeOut 2s forwards 0.3s;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 10px;
}

.report-page .generate-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.report-page .generate-buttons .btn-large {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
.report-page .generate-buttons {
        flex-direction: column;
    }

.report-page .generate-buttons .btn-large {
        width: 100%;
    }

}

.report-page .section {
    background: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    animation: fadeIn 0.5s ease forwards;
}

.report-page .section:hover {
    box-shadow: var(--box-shadow);
}

.report-page .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.report-page .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.report-page .operator-type-switch {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--gray-light);
}

.report-page .radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-color);
}

.report-page .radio-label input {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.report-page .site-card {
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
}

.report-page .site-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.report-page .site-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.report-page .site-card-title {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--primary-dark);
}

.report-page .site-card-actions {
    display: flex;
    gap: 10px;
}

.report-page .miner-card {
    background: rgba(67, 97, 238, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: var(--border-radius-sm);
    position: relative;
}

.report-page .miner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.report-page .miner-type-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.report-page .equipment-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    transition: var(--transition);
}

.report-page .equipment-card:hover {
    border-color: var(--success-color);
}

.report-page .equipment-field {
    flex: 1;
    min-width: 150px;
}

.report-page .equipment-field label {
    font-size: 0.8em;
    margin-bottom: 4px;
    color: var(--gray-dark);
}

.report-page .equipment-field input, .report-page .equipment-field select {
    padding: 8px;
    font-size: 0.9em;
}

.report-page .btn-icon-sm {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.report-page .btn-icon-sm:hover {
    background: var(--gray-light);
    transform: scale(1.05);
}

/* Модификатор для кнопок с иконкой И текстом (например "➕ Майнер"),
   в отличие от .btn-icon-sm, который рассчитан на одну иконку в квадрате */
.report-page .btn-icon-sm.with-label {
    width: auto;
    height: auto;
    padding: 6px 12px;
    font-size: 0.9em;
    gap: 6px;
    white-space: nowrap;
}

.report-page .btn-danger-sm {
    color: var(--danger-color);
}

.report-page .btn-danger-sm:hover {
    background: var(--danger-color);
    color: white;
}

.report-page .empty-hint {
    text-align: center;
    padding: 40px;
    color: var(--gray-color);
    background: rgba(108, 117, 125, 0.1);
    border-radius: var(--border-radius-sm);
    font-style: italic;
}

.report-page .validation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

.report-page .validation-success {
    background: rgba(76, 201, 168, 0.2);
    color: var(--success-dark);
}

.report-page .validation-error {
    background: rgba(247, 37, 133, 0.2);
    color: var(--danger-dark);
}

@media (max-width: 768px) {
.report-page .section {
        padding: 15px;
    }

.report-page .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

.report-page .site-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

.report-page .equipment-card {
        flex-direction: column;
        align-items: stretch;
    }

.report-page .operator-type-switch {
        justify-content: center;
    }

}

.report-page .wallet-select-item {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--primary-light);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.report-page .wallet-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.report-page .wallet-address {
    flex: 2 1 200px;
    min-width: 200px;
    max-width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    background: var(--light-color);
    transition: var(--transition);
    box-sizing: border-box;
}

.report-page .wallet-coin-select {
    flex: 1 1 140px;
    min-width: 140px;
    max-width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--dark-color);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234361ee' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    box-sizing: border-box;
}

.report-page .btn-save-wallet, .report-page .btn-remove-wallet {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    box-sizing: border-box;
}
