/* WooCommerce Account Layout */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 20% !important;
}

.mfn-header-login .woocommerce-MyAccount-navigation {width: 100% !important;}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 78% !important;
}

.mfn-header-login .woocommerce .mfn-header-modal-nav .woocommerce .woocommerce-MyAccount-navigation {
    width: 100% !important;
}

@media (max-width: 960px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
    }
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.-bottom-12 {
    bottom: -3rem;
}

.-bottom-16 {
    bottom: -4rem;
}

.left-8 {
    left: 2rem;
}

.left-48 {
    left: 12rem;
}

/* Layout e Spaziature */
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-6 { padding: 1.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }

.icon {position:relative;}

/* Grid Layout */
.grid_frenz { display: grid; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Flex */
.flex { display: flex; }
.items-center { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Dimensioni */
.w-full { width: 100%;}
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.h-2 { height: 0.5rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }

/* Overflow e Object Fit */
.overflow-hidden {
    overflow: hidden;
}

.object-center {
    object-position: center;
}

.object-cover {
    object-fit: cover;
}

/* Typography */
.text-2xl { font-size: 1.5rem; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Colors */
.text-gray-600 { color: #4B5563; }
.text-gray-500 { color: #6B7280; }
.text-green-500 { color: #10B981; }
.text-red-500 { color: #EF4444; }
.text-white { color: #FFFFFF; }
.bg-white { background-color: #FFFFFF; }
.bg-blue-500 { background-color: #3B82F6; }
.bg-green-500 { background-color: #10B981; }
.bg-red-500 { background-color: #dc3545; }
.bg-grey-500 { background-color: #b8b8b8; }
.bg-yellow-500 { background-color: #F59E0B; }
.bg-purple-500 { background-color: #8B5CF6; }
.bg-gray-200 { background-color: #E5E7EB; }
.bg-indigo-500 {background-color: #6366f1;}
.bg-orange-500 {background-color: #f97316;}
.bg-teal-500 {background-color: #14b8a6;}
.bg-rose-500 {background-color: #f43f5e;}

/* Bordi e Ombre */
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Bordi Profile Image */
.border-4 {
    border-width: 4px;
}

.border-white {
    border-color: #ffffff;
}

/* Divisori */
.divide-y > * + * {
    border-top: 1px solid #E5E7EB;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px !important;
    width: 100%;
}

/* Card Hover Effects */
.bg-white {
    transition: transform 0.2s ease;
}

.bg-white:hover {
    transform: translateY(-2px);
}

/* Progress Bar Animation */
.bg-blue-500.rounded-full {
    transition: width 0.3s ease;
}

/* Dashboard Container */
.dashboard-container {
    background-color: #F3F4F6;
    min-height: 100vh;
    padding: 1.5rem;
}

/* Stats Card */
.stats-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Profile Header Styles */
.wallet_total { color: #10B981; margin-right:8px;}
.wallet_tax { color: #dc3545; margin-right:8px;}


.profile-header {
    margin-bottom: 3rem;
}

/* Profile Info Container */
.profile-info-container {
    background-color: white;
    padding-left: 2rem;
    padding-right: 2rem;

    border-bottom: 1px solid #e5e7eb;
}

/* Profile Image */
.profile-image {
    position:relative;
    top:-60px;
}

.profile-image .rounded-full {
    width: 168px;
    height: 168px;
    border: 4px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User Info */
.user-info {
    padding-left: 12rem;
margin-top:-150px;
}

.user-info h3 {text-align:right;}

/* Cover Container */
.cover-container {
    position: relative;
    background-color: #f3f4f6;
}

.cover-upload-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.cover-upload-button button {
    font-size: 0.75rem;
    line-height: 0.85rem;
    max-height: 24px;
    padding: 5px;
    background-color: white;
    opacity: 0.9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.cover-upload-button button:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.cover-upload-button .remove-button {
    color: #EF4444;
}


@media (max-width: 480px) {
    .profile-info-container {
        text-align: -webkit-center;
        padding:0;
        height:220px;
    }
    
    .h-64 {
        height: 10rem;
    }
    
    .profile-image {left:0;top:-4rem}
    .profile-image .rounded-full {
        width: 120px !important;
        height: 120px !important;
    }
    
    .user-info {
    margin-top:-30px;
    padding:0;

    }
    
    .user-info h3 {text-align:center; font-size:150%;}
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .cover-upload-button {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        z-index: 10;
    }
    
    .cover-upload-button button {
        font-size: 0.65rem;
        line-height: 0.85rem;
        max-height: 20px;
        padding:5px;
    }
    
}

/* Icon Container */
.icon-container {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Avatar */
.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
}

.profile-upload-button {
    position: absolute;
    z-index: 10;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
}

.profile-upload-button .button-container {
    position: relative;
    left: -350px;
}

.profile-upload-button button {
    font-size: 0.75rem;
    line-height: 0.85rem;
    max-height: 24px;
    padding: 5px;
    background-color: white;
    opacity: 0.9;
    border-radius: 4px;
    align-items: center;
    transition: all 0.2s;
    display:unset;
}

.profile-upload-button button:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.profile-upload-button .remove-button {
    color: #EF4444;
}

@media (max-width: 1240px) {
    .profile-upload-button .button-container {
        left: -243px;
    }
}

@media (max-width: 480px) {
    .profile-upload-button {
        top: 115px;
    }
    
    .profile-upload-button .button-container {
        left: 0px;
    }
}



/* Progress Bar */
.progress-container {
    width: 8rem;
    height: 0.5rem;
    background-color: #E5E7EB;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Loading States */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Media Queries */
/* Per dispositivi piccoli (mobile, larghezza minima 640px) */
@media (min-width: 640px) {
    .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* Per dispositivi medi (tablet, larghezza minima 768px) */
@media (min-width: 768px) {
    .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .h-80 { height: 15rem; }
    .-bottom-12 { bottom: -2.5rem; }
    .-bottom-16 { bottom: -3.5rem; }
    .left-48 { left: 8rem; }
}

/* Per dispositivi larghi (desktop, larghezza minima 1024px) */
@media (min-width: 1024px) {
    .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* Extra small devices */
@media (max-width: 480px) {
    .h-80 { height: 12rem; }
    .left-8 { left: 1rem; }
    .left-48 { left: 7rem; }
    .w-32 {width: 5rem;}
    .h-32 { height: 5rem; }
}


/* Table Styles */
.min-w-full {
    min-width: 100%;
}

.table-auto {
    table-layout: auto;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Overflow */
.overflow-x-auto {
    overflow-x: auto;
}

/* Text Transform */
.uppercase {
    text-transform: uppercase;
}

/* Display Properties */
.hidden {
    display: none;
}

/* Gap utilities */
.gap-2 {
    gap: 0.5rem;
}

/* Height utilities */
.h-2\.5 {
    height: 0.625rem;
}

/* Layout utilities */
.flex-1 {
    flex: 1 1 0%;
}

/* Icon Sizing */
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

/* Background Colors for Chart */
.bg-blue-600 {
    background-color: #2563eb;
}

/* Regular Button Styles */
.button {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.button-primary {
    background-color: #2563eb;
    color: white;
}

/* Form Elements */
.regular-text {
    width: 100%;
    max-width: 25rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
}

input[type="date"] {
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
}

/* Flex Direction */
.flex-col {
    flex-direction: column;
}

/* Items Alignment - correzione esistente */
.items-center {
    align-items: center; /* Nel tuo CSS era baseline, deve essere center */
}

.items-start {
    align-items: flex-start;
}

/* Justify Content */
.justify-end {
    justify-content: flex-end;
}

/* Width e Height */
.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

/* Responsive utilities */
@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:w-1\/3 {
        width: 33.333333%;
    }
    
    .md\:w-2\/3 {
        width: 66.666667%;
    }
    
    .md\:items-center {
        align-items: center;
    }
}



/* Posiziona l'elemento in tutti i bordi della viewport */
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Sfondo nero */
.bg-black {
  background-color: #000;
}

/* Opacità dello sfondo al 50% */
.bg-opacity-50 {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Nascondi l'elemento */
.hidden {
  display: none;
}

/* Livello di profondità z-index */
.z-50 {
  z-index: 50;
}

p:has(#account_display_name) {
    display: none !important;
}

/* Menu sticky per schermi normali e grandi */
@media screen and (min-width: 768px) {
    .woocommerce .woocommerce-MyAccount-navigation {
        position: sticky;
        top: 150px;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        z-index: 10;
        padding-bottom: 20px;
    }
    
    /* Stile scrollbar per una migliore esperienza utente */
    .woocommerce .woocommerce-MyAccount-navigation::-webkit-scrollbar {
        width: 5px;
    }
    
    .woocommerce .woocommerce-MyAccount-navigation::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .woocommerce .woocommerce-MyAccount-navigation::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 5px;
    }
    
    .woocommerce .woocommerce-MyAccount-navigation::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* Stile per schermi mobili */
@media screen and (max-width: 767px) {
    /* Nascondi il menu nella pagina principale dell'account */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        display: none;
    }
    
    /* Assicurati che il menu sia visibile nel modal */
    .mfn-header-login.woocommerce .woocommerce-MyAccount-navigation {
        display: block;
    }
}

