/* Dashboard Icon Fix for eSIM Modern Theme */
/* Fixes alignment issues with dashboard icons and updates content box backgrounds */

/* Genel dashboard icon düzeltmeleri */
.woocommerce-MyAccount-navigation li a::before {
    font-family: 'dashicons';
    margin-right: 10px;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    position: static; /* Statik pozisyon uygulayarak kayma sorununu çöz */
    transition: none !important; /* İkon geçişini kaldır */
    transform: none !important; /* İkon dönüşümünü kaldır */
}

/* Dashboard ikonunu düzeltme */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: "\f226";
    color: var(--primary-green);
}

/* Siparişler ikonunu düzeltme */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before {
    content: "\f174";
    color: var(--primary-green);
}

/* Adres ikonunu düzeltme */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: "\f230";
    color: var(--primary-green);
}

/* Hesap detayları ikonunu düzeltme */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "\f110";
    color: var(--primary-green);
}

/* Çıkış ikonunu düzeltme */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "\f310";
    color: var(--primary-green);
}

/* İçerik kutusu stillerini temaya uyumlu hale getirme */
.woocommerce-MyAccount-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 30px;
    box-shadow: 0 0 20px rgba(12, 224, 107, 0.1);
    color: var(--light-text);
    transition: all 0.3s ease;
}

/* Seçili menü öğesi ve hover durumunda ikon konumunu düzeltme */
.woocommerce-MyAccount-navigation li.is-active a::before,
.woocommerce-MyAccount-navigation li a:hover::before {
    transform: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin-right: 10px !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Hover ve aktif durumda bile tutarlı şekilde görünmelerini sağlama */
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    display: flex !important;
    align-items: center !important;
    transition: background-color 0.3s ease !important;
    transform: none !important;
}

/* Tüm menü öğelerinin ikonlarını aynı hizada tutma */
.woocommerce-MyAccount-navigation li a {
    transition: none !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
}

.woocommerce-MyAccount-content:hover {
    box-shadow: 0 0 30px rgba(12, 224, 107, 0.2);
    transform: translateY(-2px);
}

/* İçerik kutusu başlık stillerini düzeltme */
.woocommerce-MyAccount-content h2, 
.woocommerce-MyAccount-content h3 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

/* Hoş geldiniz mesajı stil iyileştirmesi */
.woocommerce-MyAccount-content p:first-of-type {
    background: rgba(12, 224, 107, 0.1);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid var(--primary-green);
    margin-bottom: 25px;
}

/* Light tema için özelleştirmeler */
body.light-theme .woocommerce-MyAccount-content {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 98, 230, 0.1);
    color: #333;
}

body.light-theme .woocommerce-MyAccount-content:hover {
    box-shadow: 0 0 30px rgba(0, 98, 230, 0.15);
}

body.light-theme .woocommerce-MyAccount-content p:first-of-type {
    background: rgba(0, 98, 230, 0.05);
    border-left: 3px solid var(--primary-green);
}

body.light-theme .woocommerce-MyAccount-navigation li a::before {
    color: var(--primary-green);
}
