/* Enhanced Dashboard Styling for WooCommerce + Compact Membership Tools */

/* Main dashboard container */
.woocommerce-MyAccount-navigation {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Navigation list */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Navigation items */
.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

/* Navigation links */
.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #505050;
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

/* Icon spacing */
.woocommerce-MyAccount-navigation ul li a svg,
.woocommerce-MyAccount-navigation ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Hover effect */
.woocommerce-MyAccount-navigation ul li:hover a {
    background-color: rgba(0, 0, 0, 0.03);
    color: #2271b1;
}

/* Active menu item */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: rgba(34, 113, 177, 0.05);
    border-left-color: #2271b1;
    color: #2271b1;
    font-weight: 600;
}

/* Content area */
.woocommerce-MyAccount-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Welcome message */
.woocommerce-MyAccount-content > p:first-child {
    font-size: 16px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
    margin-bottom: 20px;
}

/* Welcome message */
.woocommerce-MyAccount-content > p.welcome-message:not(:first-of-type) {
    display: none !important;
}

/* Dashboard cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important; /* Prevent underline */
    color: #333 !important; /* Maintain text color */
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dashboard-card-icon {
    margin-bottom: 15px;
    color: #2271b1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card-icon svg {
    width: 36px;
    height: 36px;
}

.dashboard-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.dashboard-card p {
    margin: 0;
    color: #666;
}

/* Quick stats */
.account-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    flex: 1;
    min-width: 120px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content {
        margin-bottom: 20px;
    }
    
    .account-stats {
        flex-direction: column;
    }
    
    .stat-box {
        min-width: 100%;
    }
}

/* Download History table improvements */
.woocommerce-MyAccount-content table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-MyAccount-content table th,
.woocommerce-MyAccount-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.woocommerce-MyAccount-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.woocommerce-MyAccount-content table tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content table tr:hover td {
    background-color: #f8f9fa;
}

/* Button styling */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button {
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button:hover {
    background-color: #135e96;
} 