/* ============================================
   СТИЛИ ДЛЯ АВТОРИЗАЦИИ И ЛИЧНОГО КАБИНЕТА
   ============================================ */

/* Контейнер авторизации */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f5f5f5;
}

.auth-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

/* Форма */
.auth-form {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
}

.form-group-checkbox label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
}

.form-group-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-yandex {
    background: #fc3f1d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-yandex:hover {
    background: #d6341a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 63, 29, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Разделитель */
.auth-divider {
    margin: 25px 0;
    text-align: center;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

/* Ссылки */
.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.auth-links a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Сообщения */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ============================================
   ЛИЧНЫЙ КАБИНЕТ
   ============================================ */

.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: azure;
    border-radius: 15px;
    margin: 15px 0px;
}


.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.account-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.account-info {
    margin-bottom: 30px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

.info-card p {
    margin: 10px 0;
    color: #666;
    font-size: 16px;
}

.info-card strong {
    color: #333;
    font-weight: 600;
}

/* Баланс */
.account-balance {
    margin-bottom: 40px;
}

.balance-card {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-radius: 12px;
    padding: 40px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

.balance-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    opacity: 0.9;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.balance-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.balance-currency {
    font-size: 32px;
    font-weight: 600;
    opacity: 0.9;
}

/* Транзакции */
.account-transactions {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.account-transactions h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

.transactions-table-wrapper {
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.transactions-table thead {
    background: #f8f9fa;
}

.transactions-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.transactions-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    color: #666;
}

.transactions-table tbody tr:hover {
    background: #f8f9fa;
}

.transaction-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-type-add {
    background: #d4edda;
    color: #155724;
}

.transaction-type-subtract {
    background: #f8d7da;
    color: #721c24;
}

.transaction-amount {
    font-weight: 600;
}

.transaction-amount.positive {
    color: #28a745;
}

.transaction-amount.negative {
    color: #dc3545;
}

.transactions-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.transactions-empty p {
    margin: 0;
    font-size: 16px;
}

/* Модальное окно авторизации */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background-color: #fff;
    margin: auto;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

.auth-modal-close:hover,
.auth-modal-close:focus {
    color: #000;
}

.auth-modal-body {
    padding: 40px;
}

.auth-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

/* Боковое меню личного кабинета */
.account-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.account-sidebar {
    flex: 0 0 250px;
    min-width: 250px;
}

.account-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.account-info-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

.account-info-card p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.account-info-card p strong {
    color: #333;
    font-weight: 600;
}

.account-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu__item {
    margin-bottom: 10px;
}

.account-menu__link {
    display: block;
    text-align: center;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: all 0.3s;
    min-width: 100px;
}

.account-menu__link:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    animation: menuAnim 1s ease 0s 1 normal forwards;
}

.account-menu__link.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

@keyframes menuAnim {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 1;
    }
}

.account-content {
    flex: 1;
    min-width: 0;
}

.account-section {
    margin-bottom: 30px;
}

.account-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

.settings-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.settings-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
}

.settings-card .form-group input[disabled] {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Стили для услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

.service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 15px;
}

.service-price .price-value {
    font-size: 24px;
    font-weight: 700;
    color: #0066cc;
}

.service-price .price-currency {
    font-size: 18px;
    color: #0066cc;
}

.service-content .btn {
    width: 100%;
}

.service-type-badge {
    margin: 10px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-subscription {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-one-time {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-period {
    background: #fff3e0;
    color: #e65100;
}

.service-price .price-period {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Стили для подписок */
.subscriptions-section {
    margin-top: 40px;
}

.subscriptions-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscription-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.subscription-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.subscription-details {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.subscription-details strong {
    color: #333;
    margin-right: 5px;
}

.subscription-dates {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #888;
}

.subscription-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-paused {
    background: #fff3e0;
    color: #e65100;
}

.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

/* Стили для канбан-доски задач */
.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.tasks-filter {
    margin-bottom: 25px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.tasks-filter label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.tasks-filter select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.kanban-column {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    min-height: 400px;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.kanban-column-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.task-count {
    background: #0066cc;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.kanban-column-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-task {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kanban-task:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.task-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.task-priority {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: 10px;
}

.priority-low {
    background: #e8f5e9;
    color: #2e7d32;
}

.priority-medium {
    background: #fff3e0;
    color: #e65100;
}

.priority-high {
    background: #ffebee;
    color: #c62828;
}

.priority-urgent {
    background: #fce4ec;
    color: #880e4f;
}

.task-description {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
}

.task-contract {
    font-weight: 600;
    color: #0066cc;
}

.task-files {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.files-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* Стили для неоплаченных счетов */
.transaction-overdue {
    background: #ffebee !important;
    border-left: 4px solid #c62828;
}

.transaction-overdue td {
    color: #c62828;
    font-weight: 600;
}

.overdue-warning {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 8px;
    background: #ffcdd2;
    border-radius: 4px;
    font-size: 12px;
}

/* Стили для компаний */
.companies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.company-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.company-status {
    font-size: 12px;
    font-weight: 600;
}

.company-details {
    margin-bottom: 15px;
}

.company-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.company-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.company-actions .btn {
    font-size: 14px;
    padding: 8px 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .account-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .account-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .account-menu__list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .account-menu__item {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .account-menu__link {
        white-space: nowrap;
        min-width: auto;
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-item {
        flex-direction: column;
    }
    
    .subscription-status {
        align-self: flex-start;
        margin-top: 10px;
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
    }
    
    .tasks-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tasks-header .btn {
        width: 100%;
    }
}

/* Стили для договоров */
.contract-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.contract-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.contract-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contract-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.contract-details-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 250px;
    border-bottom: 1px solid #dee2e6;
}

.contract-details-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    color: #666;
}

.contract-description {
    margin-top: 15px;
    line-height: 1.6;
    color: #666;
}

.contract-files {
    margin-top: 30px;
}

.contract-files h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.pdf-viewer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pdf-viewer-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pdf-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pdf-viewer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.pdf-viewer {
    width: 100%;
    min-height: 800px;
}

.pdf-viewer iframe {
    width: 100%;
    height: 800px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.additional-agreements-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.additional-agreements-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.additional-agreements-list li:last-child {
    border-bottom: none;
}

.additional-agreements-list a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.additional-agreements-list a:hover {
    text-decoration: underline;
}

/* Список договоров в личном кабинете */
.contracts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contract-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.contract-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contract-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.contract-item-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.contract-item-header h3 a {
    color: #333;
    text-decoration: none;
}

.contract-item-header h3 a:hover {
    color: #0066cc;
}

.contract-number {
    background: #0066cc;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.contract-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.contract-detail {
    font-size: 14px;
    color: #666;
}

.contract-detail strong {
    color: #333;
    margin-right: 5px;
}

.contract-item-actions {
    margin-top: 15px;
}

.contract-header-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.contract-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.contract-status-new {
    background: #ff4444;
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.contract-item.contract-new {
    border-left: 4px solid #ff4444;
    background: #fff9f9;
}

.contract-item.contract-new:hover {
    background: #fff5f5;
}

.payment-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.payment-status-paid {
    background: #28a745;
    color: #fff;
}

.payment-status-partial {
    background: #ffc107;
    color: #000;
}

.payment-status-pending {
    background: #ff4444;
    color: #fff;
}

.payment-methods {
    margin-top: 20px;
}

.payment-methods label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Адаптивность для договоров */
@media (max-width: 768px) {
    .contract-container {
        padding: 20px 15px;
    }
    
    .contract-title {
        font-size: 24px;
    }
    
    .contract-details-table {
        font-size: 14px;
    }
    
    .contract-details-table th,
    .contract-details-table td {
        padding: 8px 12px;
    }
    
    .contract-details-table th {
        width: auto;
        display: block;
    }
    
    .contract-details-table td {
        display: block;
        padding-top: 5px;
    }
    
    .pdf-viewer iframe {
        height: 600px;
    }
    
    .contract-item-header {
        flex-direction: column;
    }
    
    .contract-item-details {
        flex-direction: column;
        gap: 10px;
    }
    .auth-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .auth-modal-body {
        padding: 30px 20px;
    }
    
    .auth-modal-title {
        font-size: 20px;
    }
    .auth-box {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .account-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .account-title {
        font-size: 24px;
    }
    
    .balance-card {
        padding: 30px 20px;
    }
    
    .balance-value {
        font-size: 36px;
    }
    
    .balance-currency {
        font-size: 24px;
    }
    
    .account-transactions {
        padding: 20px;
    }
    
    .transactions-table {
        font-size: 12px;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 8px 12px;
    }
}

