/* Добавить в конец файла */

/* Стили для профиля */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Стили для графиков */
.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Стили для таблиц с действиями */
.action-cell {
    white-space: nowrap;
}

/* Стили для бейджей */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-income {
    background: #c6f6d5;
    color: #22543d;
}

.badge-expense {
    background: #fed7d7;
    color: #742a2a;
}

.badge-admin {
    background: #bee3f8;
    color: #2a4365;
}

.badge-user {
    background: #e9d8fd;
    color: #44337a;
}

/* Стили для денежных значений */
.income {
    color: #38a169;
    font-weight: 600;
}

.expense {
    color: #e53e3e;
    font-weight: 600;
}

/* Стили для пустых состояний */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state-title {
    color: #4a5568;
    margin-bottom: 10px;
}

.empty-state-description {
    color: #718096;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Стили для форм ввода */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background: #c6f6d5;
    border-left: 4px solid #38a169;
    color: #22543d;
}

.notification-error {
    background: #fed7d7;
    border-left: 4px solid #e53e3e;
    color: #742a2a;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стили для мобильных устройств */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    .data-table table {
        font-size: 14px;
    }
}

/* Стили для печати */
@media print {
    .no-print {
        display: none !important;
    }
    
    .container {
        box-shadow: none;
        width: 100%;
        max-width: 100%;
    }
    
    body {
        background: white;
    }
}

/* Стили для скроллбара */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Стили для загрузки */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}