/* ========================================
   WHMCS Corporate Theme - Client Area Styles
   Müşteri Paneli Özel Stilleri
   ======================================== */

/* ========================================
   1. CLIENT AREA LAYOUT
   ======================================== */

.clientareabg {
    background: var(--gray-100);
    min-height: 100vh;
}

.client-area-container {
    padding: var(--spacing-xl) 0;
}

/* ========================================
   2. SIDEBAR NAVIGATION
   ======================================== */

.sidebar {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
}

.sidebar .list-group-item {
    border: none;
    border-left: 3px solid transparent;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
}

.sidebar .list-group-item:hover {
    background-color: var(--gray-100);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar .list-group-item.active {
    background-color: rgba(0, 102, 204, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.sidebar .list-group-item i {
    margin-right: var(--spacing-sm);
    width: 20px;
    text-align: center;
}

/* ========================================
   3. CONTENT PANELS
   ======================================== */

.panel {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
}

.panel-heading {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    font-weight: var(--font-weight-semibold);
}

.panel-body {
    padding: var(--spacing-lg);
}

.panel-footer {
    background: var(--gray-100);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* ========================================
   4. DASHBOARD WIDGETS
   ======================================== */

.dashboard-widget {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-base);
}

.dashboard-widget:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.dashboard-widget .widget-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 24px;
    margin-bottom: var(--spacing-md);
}

.dashboard-widget .widget-title {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
}

.dashboard-widget .widget-value {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
}

/* ========================================
   5. SERVICE STATUS
   ======================================== */

.service-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.service-status.active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.service-status.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.service-status.suspended {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* ========================================
   6. INVOICE STYLES
   ======================================== */

.invoice-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-xxl);
}

.invoice-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.invoice-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
}

.invoice-status.paid {
    background-color: var(--success-color);
    color: var(--text-white);
}

.invoice-status.unpaid {
    background-color: var(--danger-color);
    color: var(--text-white);
}

.invoice-table {
    margin: var(--spacing-lg) 0;
}

.invoice-table th {
    background-color: var(--primary-color);
    color: var(--text-white);
    font-weight: var(--font-weight-semibold);
    padding: var(--spacing-md);
}

.invoice-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.invoice-total {
    background-color: var(--gray-100);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-lg);
}

.invoice-total .total-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-lg);
}

.invoice-total .total-row.grand-total {
    border-top: 2px solid var(--primary-color);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
    color: var(--primary-color);
}

/* ========================================
   7. TICKET SYSTEM
   ======================================== */

.ticket-list-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    transition: var(--transition-fast);
}

.ticket-list-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.ticket-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.ticket-status.open {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
}

.ticket-status.answered {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.ticket-status.closed {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--text-secondary);
}

.ticket-reply {
    background: var(--gray-100);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

.ticket-reply.admin-reply {
    background: rgba(0, 102, 204, 0.05);
    border-left-color: var(--primary-color);
}

/* ========================================
   8. DOMAIN MANAGEMENT
   ======================================== */

.domain-list-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.domain-name {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

.domain-expiry {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.domain-actions .btn {
    margin-left: var(--spacing-xs);
}

/* ========================================
   9. PRODUCT DETAILS
   ======================================== */

.product-details-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.product-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: var(--spacing-xl);
}

.product-header h2 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.product-info {
    padding: var(--spacing-lg);
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.product-info-row:last-child {
    border-bottom: none;
}

.product-info-label {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.product-info-value {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   10. PAYMENT METHODS
   ======================================== */

.payment-method-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.payment-method-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.05);
}

.payment-method-icon {
    width: 60px;
    height: 40px;
    object-fit: contain;
}

/* ========================================
   11. PROFILE SETTINGS
   ======================================== */

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
}

.profile-info-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-xl);
}

.profile-field {
    margin-bottom: var(--spacing-lg);
}

.profile-field label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

/* ========================================
   12. RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .sidebar {
        margin-bottom: var(--spacing-lg);
    }
    
    .dashboard-widget {
        margin-bottom: var(--spacing-md);
    }
    
    .invoice-container {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    .product-info-row {
        flex-direction: column;
    }
    
    .product-info-label {
        margin-bottom: var(--spacing-xs);
    }
    
    .domain-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .domain-actions {
        margin-top: var(--spacing-md);
        width: 100%;
    }
    
    .domain-actions .btn {
        width: 100%;
        margin: var(--spacing-xs) 0;
    }
}
