/* My Account Page Styles */

.oldphoto-my-account {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.oldphoto-my-account .page-header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.oldphoto-my-account .page-header h1 {
    font-size: 32px;
    color: #333;
    margin: 0;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card, .profile-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Balance */
.balance-display {
    text-align: center;
    padding: 30px 0;
}

.balance-number {
    font-size: 56px;
    font-weight: 700;
    color: #078d66;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.balance-number img {
    width: 50px;
    height: 50px;
    vertical-align: middle;
}

.balance-label {
    color: #666;
    font-size: 18px;
    margin-top: 10px;
}

.buy-credits-btn {
    display: inline-block;
    background: linear-gradient(135deg, #078d66 0%, #83c6b2 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
}

.buy-credits-btn:hover {
    background: linear-gradient(135deg, #046247 0%, #078d66 100%);
    transform: scale(1.05);
}

/* Profile Settings */
.profile-field {
    margin-bottom: 20px;
}

.profile-field label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.profile-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.profile-field input:focus {
    outline: none;
    border-color: #078d66;
}

.profile-field input:disabled {
    background: #f9f9f9;
    color: #999;
}

.profile-field-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.profile-field-actions input {
    flex: 1;
}

.change-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #078d66;
    color: #046247;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.change-btn:hover {
    background: #078d66;
    color: white;
}

.save-profile-btn {
    width: 100%;
    padding: 12px;
    background: #078d66;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.save-profile-btn:hover {
    background: #046247;
}

.profile-message {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.profile-message.success {
    background: #d1fae5;
    color: #065f46;
}

.profile-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* History Table */
.history-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #078d66;
}

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

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

.history-table thead {
    background: #e6f3ef;
}

.history-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #046247;
    font-size: 14px;
    border-bottom: 2px solid #83c6b2;
}

.history-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.history-table tr:hover {
    background: #e6f3ef;
}

/* Listik Icon */
.listik-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

/* Action Button */
.action-btn {
    padding: 8px 16px;
    border: 1px solid #078d66;
    color: #046247;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #078d66;
    color: white;
}

/* No History */
.no-history {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-history p {
    font-size: 16px;
    margin-bottom: 20px;
}

.no-history a {
    display: inline-block;
    padding: 12px 30px;
    background: #078d66;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.2s;
}

.no-history a:hover {
    background: #046247;
}

/* Login Required */
.oldphoto-login-required {
    background: white;
    padding: 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.oldphoto-login-required p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.oldphoto-login-required .login-link {
    display: inline-block;
    padding: 14px 32px;
    background: #078d66;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.2s;
}

.oldphoto-login-required .login-link:hover {
    background: #046247;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .oldphoto-my-account {
        padding: 10px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-number {
        font-size: 42px;
    }
    
    .balance-number img {
        width: 40px;
        height: 40px;
    }
    
    .history-table {
        font-size: 12px;
    }
    
    .history-table th,
    .history-table td {
        padding: 10px 8px;
    }
    
    .profile-field-actions {
        flex-direction: column;
    }
    
    .change-btn {
        width: 100%;
    }
}


/* Кнопка удаления аккаунта */
.delete-account-btn {
    width: 100%;
    padding: 14px 20px;
    margin-top: 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-account-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

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

/* Контейнер для действий в таблице */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

/* Кнопка удаления файла (корзина) */
.delete-file-btn {
    background: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-file-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.delete-file-btn svg {
    width: 16px;
    height: 16px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .delete-file-btn {
        padding: 8px 10px;
    }
}

