/**
 * Стили для личного кабинета
 */

/* Основной контейнер */
.account-dashboard {
    min-height: 600px;
}

/* Боковое меню */
.account-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
}

.user-info {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Навигационные вкладки */
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-nav .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-nav .nav-link i {
    width: 20px;
    font-size: 1.1rem;
}

.account-nav .nav-link:hover {
    background-color: #f3f4f6;
    color: #4f46e5;
}

.account-nav .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Статистические карточки */
.stat-card {
    transition: transform 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.bg-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
}

.stat-card.bg-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}

.stat-card.bg-info {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
}

/* Карточки услуг */
.service-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: white;
}

.service-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

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

.service-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.service-status {
    font-size: 0.875rem;
    padding: 4px 10px;
    border-radius: 20px;
}

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

.service-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.service-detail-item:last-child {
    border-bottom: none;
}

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

/* Таблицы */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: #f9fafb;
}

.table th {
    font-weight: 600;
    color: #374151;
    padding: 12px 16px;
}

.table td {
    padding: 12px 16px;
    vertical-align: middle;
}

/* Тикеты */
.ticket-item {
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.ticket-item:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ticket-id {
    font-weight: 600;
    color: #4f46e5;
}

.ticket-subject {
    font-weight: 500;
    margin-bottom: 8px;
}

.ticket-meta {
    display: flex;
    gap: 20px;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Формы */
.account-form {
    max-width: 600px;
}

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

.account-form label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

/* Адаптивность */
@media (max-width: 768px) {
    .account-sidebar {
        margin-bottom: 20px;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .service-actions .btn {
        width: 100%;
    }
    
    .ticket-meta {
        flex-direction: column;
        gap: 5px;
    }
}


/* Стили для просмотра тикета */
.ticket-replies {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.reply-item {
    background: #f8f9fa;
    border-left: 3px solid #4f46e5 !important;
}

.reply-item .reply-content {
    word-wrap: break-word;
    line-height: 1.6;
}

#viewTicketModal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.ticket-info {
    background: #eef2ff;
    padding: 12px;
    border-radius: 8px;
}

/* Стили для iframe */
#viewTicketModal iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    border-radius: 8px;
}


.whmcs-account-container
{
	margin-top: 50px;
}