/* Dashboard Grid Layout */
.wcd-dashboard {
    padding: 20px 0;
    width: 100%;
    max-width: none;
}

.wcd-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 0 20px 0;
    width: 100%;
}

/* Card Styles */
.wcd-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wcd-card h3 {
    margin: 0 0 20px;
    padding: 0;
    font-size: 16px;
    color: #1d2327;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Recent Orders Card */
.wcd-recent-orders .wcd-order-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wcd-order-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.wcd-order-item:last-child {
    border-bottom: none;
}

.wcd-order-number {
    font-weight: 600;
    color: #2271b1;
}

.wcd-order-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    background: #f0f0f1;
}

.wcd-order-status.status-completed {
    background: #c6e1c6;
    color: #5b841b;
}

.wcd-order-status.status-processing {
    background: #c8d7e1;
    color: #2e4453;
}

.wcd-view-order {
    color: #2271b1;
    text-decoration: none;
    font-size: 13px;
}

.wcd-view-order:hover {
    color: #135e96;
}

/* Quick Stats Card */
.wcd-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.wcd-stat-item {
    text-align: center;
    padding: 15px;
    background: #f0f6fc;
    border-radius: 6px;
}

.wcd-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #2271b1;
    margin-bottom: 5px;
}

.wcd-stat-label {
    display: block;
    font-size: 13px;
    color: #646970;
}

/* Account Actions Card */
.wcd-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.wcd-action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #f0f6fc;
    border-radius: 6px;
    text-decoration: none;
    color: #2271b1;
    transition: all 0.2s ease;
}

.wcd-action-link:hover {
    background: #e0f0fa;
    color: #135e96;
}

.wcd-action-link .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.wcd-action-label {
    font-size: 13px;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .wcd-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .wcd-order-item {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }
    
    .wcd-order-number {
        grid-column: 1 / -1;
    }
    
    .wcd-order-status {
        grid-column: 1 / 2;
    }
    
    .wcd-order-total {
        grid-column: 2 / 3;
        text-align: right;
    }
    
    .wcd-view-order {
        grid-column: 1 / -1;
        text-align: center;
        display: block;
        padding: 5px;
        background: #f0f6fc;
        border-radius: 4px;
    }
}

/* Personal Info Dashboard Section */
.wcd-personal-info-dashboard {
    margin-top: 50px;
    width: 100%;
    max-width: none;
}

.wcd-personal-info-dashboard h2 {
    margin: 0 0 40px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    color: #333;
    font-size: 28px;
    font-weight: 600;
    text-align: left;
}

.wcd-personal-section {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.wcd-personal-section:last-child {
    margin-bottom: 0;
}

.wcd-personal-section h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.wcd-personal-content {
    width: 100%;
}

/* Detalhes da conta */
.wcd-account-summary {
    width: 100%;
}

.wcd-account-summary .wcd-info-item {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.wcd-account-summary .wcd-info-item strong {
    min-width: 80px;
    color: #333;
}

.wcd-info-actions {
    margin-top: 25px;
    text-align: left;
}

.wcd-info-actions .button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.wcd-info-actions .button:hover {
    background: #005a87;
    color: white;
}

/* Moradas - lado a lado */
.wcd-addresses-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.wcd-address-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    position: relative;
}

.wcd-address-item h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.wcd-address-content {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
    font-size: 15px;
    min-height: 60px;
}

.wcd-address-empty {
    margin-bottom: 20px;
    color: #888;
    font-style: italic;
    font-size: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.wcd-address-item .button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.wcd-address-item .button:hover {
    background: #005a87;
    color: white;
}

.wcd-address-actions {
    margin-top: 15px;
}

/* Responsivo para seção pessoal */
@media (max-width: 768px) {
    .wcd-personal-info-dashboard {
        margin-top: 40px;
    }
    
    .wcd-personal-section {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .wcd-personal-info-dashboard h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .wcd-addresses-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wcd-account-summary .wcd-info-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .wcd-account-summary .wcd-info-item strong {
        min-width: auto;
        margin-bottom: 5px;
    }
}
